FlexLM License Key setup for the IMSL C# Library for .NET
Depending on the installation, not all steps are required.
- Evaluations: To enter a temporary demo key, follow Steps 1 and 3.
- Unlimited Server: For an uncounted server key, follow Steps 1 through 3.
- Per User: For node-locked or floating keys, follow Steps 1 through 6.
1. License environment variable
The environment variable LM_LICENSE_FILE is used to locate the license file
and is set during installation. In most cases the default location of the
file is OK, but if necessary you may change the location of the file in the
System settings. In the Control Panel, click on the System icon, the Advanced
tab, then click Environment Variables. Under the System variables, you can locate
and edit LM_LICENSE_FILE.

2. Permanent License Key information
For a permanent License Key, specific information about your system is required.
To obtain this information open My Computer or Windows Explorer and browse to
the directory,
C:\Program Files\VNI\license\bin and run the script, get_hostid_intel.bat.
You can also open a Command Prompt and change to that directory. Run the script by typing get_hostid_intel.bat and press Enter.
Either method will create a file named hostinfo.<hostname> where <hostname> is the name of the computer.

The information contained in hostinfo.<hostname> should be emailed to lmgr@vni.com so that a permanent
License Key for this system can be created.

3. License Key input
Once you receive your permanent
License Key, or if you are using a temporary DEMO key, the information needs to be copied into the license.dat file. The default location of this file is
C:\Program Files\VNI\license\license.dat. Below are two example license.dat files.
Permanent License Key for one user
SERVER imslserver 1111abcd 27000
DAEMON VNI
FEATURE IMSLCS VNI 5.000 01-jan-00 1
2DA1B701F310D86D039A8 ""
Temporary DEMO key for evaluation
FEATURE IMSLCS VNI 5.000 30-jun-2006 0
FCAD4309EC7B816EC846 "" DEMO
4. Configuring the license server
To configure the license server, follow the these steps:
a) Start the program c:\Program Files\VNI\license\bin\bin.i386nt\lmtools.exe
b) Use Config Services to configure the name of the service and the location of the lmgrd.exe file and license.dat files as well as the log file.
c) You can also perform diagnostics to be sure the server is operational.
The images below show these various steps:



5. Start the license server
To start the license server, select Start Server. This program may also be used to stop the server or reread the license file. After the server is started, a log file is created as configured in Step 4b above. If you have problems with the license server, the log file is the first place to look.

6. Confirm the license server is running
Click Perform Status Enquiry to check the status of the license server.

Other information which may be useful
- If there is ever a problem checking out licenses, the first step should be to stop and restart the server using the Start/Stop/Reread tab of LMTOOLS.
- Additional information is available from Macrovision, the distributors of the FLEXlm software: http://www.macrovision.com/services/support/flexlm/lmgrd.shtml
- The email address of the license manager at Visual Numerics is lmgr@vni.com
7. Using IMSL C#
>> Using the IMSL C# Library