Installing Sybase Unwired Platform in AWS Part 1 – Licensing

This is first in a series of posts by Jesse which he calls “Unwiring the Enterprise—Slalom Experiments in the Cloud” about deploying the Sybase Unwired Platform in the Amazon Web Services environment.

Slalom Consultant Jesse Anarde

Slalom Consultant Jesse Anarde is an experienced developer, DBA, and BI specialist who is a resident expert on the Sybase Unwired Platform with Slalom Consulting's National Mobility team.

One of the advantages of the Amazon Web Services (AWS) Elastic Compute Cloud (EC2) feature is the ability to quickly spin up an enterprise class server for a relatively low price. This can accelerate a project significantly and reduce costs in a very meaningful way. However, since AWS is essentially a huge virtualization farm, when it comes to Sybase licensing, there are several pitfalls that one can fall into while configuring a Sybase Unwired Platform (SUP) environment.  Most of these can be easily mitigated by keeping a couple of rules in mind and by using readily available tools in the AWS toolkit.

All AWS instances are virtual machines. Sybase’s license generation requires the physical address of the machine (MAC Address) and the hostname to bind the license to the SUP host.  So what does this mean?

Firstly it means you cannot terminate the instance without invalidating the license. You can reboot the instance, but you have to do a couple things to afford you this freedom. When you initially set up your AWS instance it must be initialized as an Elastic Block Storage (EBS) backed instance (rather than an EC2 instance store-backed AMI on S3). EBS instances can be rebooted (but still not terminated) without losing your MAC Address.

Secondly it means that you will also need a static host name via DNS. This is where the AWS feature of elastic IPs can help mitigate the dynamically allocated hostname problem. With Elastic IPs you can lease a static address from Amazon and associate it with your instance. When you do this you can then depend on the public DNS name to stay consistent and it can be used in conjunction with the physical address to create a license file.

In some cases if you stop/suspend an instance, the physical address may still change, so you may have to regenerate a new license regardless. However, having a consistent DNS entry for your image will be invaluable for establishing remote connections to the Unwired Services, and using EBS backed instances will introduce less risk of having to regenerate the licenses every time you need to reboot your instance(s).

Finally, Sybase offers two license validation models. One is what is called an “unserved” model that validates against a local license file stored on the file system of the host the SUP components are being installed on. This is useful when installing an evaluation or development instance on your local machine. Unfortunately Sybase does not allow unserved licenses to be used on what they call “sub-capacity” hardware; i.e. virtual machines. Thus, in order to install a licensed copy of SUP components you have to deploy a SySAM license server somewhere. You can download the SySAM Standalone License Server here. It’s pretty lightweight, so it can just be deployed to the same host as the SUP components. Installing the SySAM server is pretty straightforward so I won’t go into it here, except to say that it is important to make sure that port 27000 is added as a rule to your AWS security group. Once the SySAM server is up and running you can begin installing SUP on your EC2 instance. I will go into detail about that in the next post.

Slalom Consulting's Seattle Office Slalom Consulting's Mobile Focus Area
More about Slalom Consulting’s Seattle office. More about Slalom Consulting’s Mobile focus.

subscribe by emailSubscribe to be emailed about new Mobility posts.

About Jesse Anarde
Slalom Consultant Jesse Anarde is an experienced developer, DBA, and BI specialist who is a resident expert on the Sybase Unwired Platform with Slalom Consulting's National Mobility team.

6 Responses to Installing Sybase Unwired Platform in AWS Part 1 – Licensing

  1. Pingback: Installing Sybase Unwired Platform in AWS Part 2 – Installation « The Slalom Blog

  2. Tapan says:

    Hello Sir,

    Please suggest me how to install SUP 2.0 in windows server and then how can i used that server in my other local machines to develop Mobile Application. I dont know how to used SUP 2.0 in local machines ? which components should be installed on local/client machines ?
    Waiting for Your reply.

    Regards,
    Tapan

  3. Tom Slee says:

    Thanks for taking the time to post these notes. You saved me many hours of work!

  4. Ian says:

    This is a great blog, thanks for putting it out there.

  5. Thank you very much .Waiting for part 3 .

  6. maxx says:

    Thanks for taking the time but it is still pretty much gobbly gook this Sybase nonsense. Why so messy and overcomplicated?

    Load license file, read license file, software works or not is what I would expect and expires after a bit. All this other stuff lost me in nomenclature. E.g. Cloud is really just repackaged mainframes, AWS is likely a virtual machine. This stuff has been around since the mid 1960s and now it is just renamed and made complex.

    Thanks again for the effort though.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: