Let us suppose you have bought a 2-user license for a module. Normally you will then obtain a floating license, meaning that you will be able to use the module from any machine, and two users can be busy with it at the same time.
Server side: The License Manager Daemon
To be able to enforce the license, there must be a piece of software somewhere that keeps track of who is using the module. That is theLicense Manager Daemon (LMD ). The LMD can run on any machine, also on machines that you will never use the module itself on. Good candidates are stable UNIX servers.
When the LMD is started, it looks at a file containing the information about what should be supported. This file is called the License File. Actually, the LMD can only be started on the machine indicated in the license file. The license file could look like this:
The first line tells us that the LMD must be started on the machine licserv, with FlexLM ID 000347e8b845 (and the IP port number will be 1706). The second line is interesting for the LMD only but then you see two actual license FEATURE lines (dTect and dTectDS). These licenses are valid for versions 1.2 and lower, until the 1st of January 2005, for two users (1.200 1-jan-2005 2).
The Client side: Your program
Now let's look at the machine that you run your software on. That program will at some point in time need to check whether there is a license for what you are trying to do. For this, the program looks at the same license file. It sees that it has to contact the machine 'licserv', port 1706 to ask for permission. The LMD keeps track of the number of users already using the license feature. If a license is granted, your program will go on, otherwise you'll get an error message.
Non-floating licenses
In some cases the software will never be used other than on a certain machine. In that case a node-locked license can be issued. For such a license you do not need to start a license manager daemon - an unlimited number of users can use the module at the same time provided they work on that particular machine. A special case is the unlimited demo license, which grants unlimited access for any number of users on any machine. It goes without saying that this kind of license is always for short periods.
Host identification
For the above schemes to work, the license server or the running machine must be uniquely identified. Therefore, you will be asked to provide a unique host ID and a hostname when you want to obtain a license. Different operating systems require different ways to obtain this information:
Windows On windows, there is a FlexLM utility that delivers both in a simple file that can be sent by e-mail. It is delivered together with commercial plugins so you need to install one of those first. From the Start menu, select Programs-OpendTect-License Manager Tools. Select the tab 'System Settings'. Then push the 'Save HOSTID Info to a File' button.
UNIX The hostname is obtained with the unix command hostname. The host ID differs per UNIX flavor, but can always be obtained by the 'lmhostid' tool. This tool is delivered with OpendTect, and can be run from the Utitlities-Batch Programs dialog.
If you need to obtain the host ID before OpendTect is installed:
The FlexLM license system is based upon internet technology. Therefore you can run your software on any machine, using any operating system, to get licenses from any other machine regardless of operating system or physical location. Thus, a Solaris license server in Houston can manage the licenses for Windows, Linux, IRIX and Mac OS/X machines in Houston, Caracas and Paris. The only restriction is the number of users actually using the 'feature' at a certain time, but that is what you pay for.
dGB Earth Sciences
Nijverheidstraat 11-2 - 7511 JM Enschede - The Netherlands - Tel. +31 (0)53 431 51 55 - Fax. +31 (0)53 431 51 04
1 Sugar Creek Center Boulevard, Suite 935 - Sugar Land, TX, 77478 - USA - Tel. +1 281 240 3939 - Fax. +1 281 240 3944
304, Gateway Plaza, Hiranandani Gardens - Powai, Mumbai 400 076 - India - Tel. +91 22 25704984 - Fax +91 22 25704977
Copyright (c)1995-2009 dGB Earth Sciences - All rights reserved