Table of ContentsPreviousNextIndex


License File Basics

Chapter 2


The license file contains information required by FLEXnet Licensing to manage licenses for a FLEXenabled application. This information includes:

In general, the license file, or a copy of it, must be accessible to every machine that runs a FLEXenabled application, and to each machine designated as a license server machine.

Specifying Location of the License File

Software vendors often recommend a specific location for your license file. If you are running the application on multiple machines, you have these options for making your licenses available on all the machines:

Since the vendor daemon keeps track of license usage, and since the license file contains encrypted data to protect it against modification, you may move and copy the license file as much as necessary.

For counted licenses, no matter which option you choose, you must first copy lmgrd and the vendor daemon to a location accessible by the FLEXenabled application.

Setting the Path with an Environment Variable

Most applications specify a location where they expect to find the license file and install it automatically. However, you can change the license file location by setting the LM_LICENSE_FILE environment variable to a license_file_list. Wherever license_file_list is specified it can consist of the following components:

Applications accept an environment variable (or Windows Registry) named VENDOR_LICENSE_FILE, where VENDOR is the vendor daemon name, e.g., GSI_LICENSE_FILE. This environment variable's scope is limited to just those applications from vendor VENDOR. On UNIX, the license-file list components are separated by colons; on Windows, the components are separated by semi-colons.

With lmgrd and lmutil (lmstat, lmdown, etc.), the -c option overrides the setting of the LM_LICENSE_FILE environment variable.


Note Some applications do not recognize the LM_LICENSE_FILE environment variable. FLEXenabled Java applications, in particular, do not recognize it. Some applications do not recognize the LM_LICENSE_FILE environment variable. FLEXenabled Java applications, in particular, do not recognize it.


See Also

FLEXnet Licensing Version Notes


License File Format Overview

License files usually begin with a SERVER line (or three lines for three-server redundant servers) followed by one or more VENDOR lines, followed by one or more FEATURE or INCREMENT lines. In some cases the license file requires no SERVER line and no VENDOR line.

You can modify these elements in the license file:

See Also

FLEXnet Licensing Version Notes


Types of License Files

License files are created by the software vendor. License files specify floating (concurrent) usage, node-locked (both counted and uncounted), or any combination of floating, counted, and uncounted.

Floating (Concurrent) Licenses

A floating license means anyone on the network can use the FLEXenabled application, up to the limit specified in the license file (also referred to as concurrent usage or network licensing). Floating licenses have no hostids on the individual FEATURE lines. Floating licenses requires an lmgrd and a vendor daemon to be running to count the concurrent usage of the licenses.

An example of a license file that provides floating licenses is:

SERVER lulu 17007ea8
VENDOR sampled
FEATURE f1 sampled 1.00 1-jan-2005 2 SIGN=signature1
FEATURE f2 sampled 1.00 1-jan-2005 6 SIGN=signature2
FEATURE f3 sampled 1.00 1-jan-2005 1 SIGN=signature3

This license file specifies that two licenses for feature "f1," six licenses for feature "f2," and one license for feature "f3" are available anywhere on the network that can access the license server machine "lulu." lmgrd uses one of the default FLEXnet Licensing TCP/IP ports.

Node-Locked Licenses

Node-locking means the FLEXenabled software can only be used on one machine or a set of machines. A node-locked license has a hostid on any FEATURE line that is node-locked to a particular host. There are two types of node-locked licenses; uncounted and counted.

If the number of licenses is set to 0 (or uncounted), then the license is uncounted and unlimited use is permitted on the specified machine. This configuration does not require an lmgrd or a vendor daemon because it is not going to count the concurrent usage of the features.

The following license file allows unlimited usage of feature "f1" on the machines with hostids of "17007ea8" and "1700ab12":

FEATURE f1 sampled 1.000 1-jan-2005 uncounted SIGN=signature1 \
        HOSTID=17007ea8
FEATURE f1 sampled 1.000 1-jan-2005 uncounted SIGN=signature2 \
        HOSTID=1700ab12

Alternately, these two FEATURE lines could have been issued by your software vendor with a hostid list:

FEATURE f1 sampled 1.000 1-jan-2005 uncounted SIGN=signature \
        HOSTID="17007ea8 1700ab12"

If these were the only FEATURE lines in this license file, no lmgrd daemon is necessary and you do not need to start one.

The following license file provides three licenses for feature "f1", locked to the machine with hostid "1300ab43." Since the license server system and licenses are locked to the same machine, the daemons run on the same machine that runs the FLEXenabled application.

SERVER lulu 1300ab43 1700
VENDOR sampled /etc/sampled
FEATURE f1 sampled 1.00 1-jan-2005 3 SIGN=signature \
        HOSTID=1300ab43

Mixed Node-Locked and Floating Licenses

Uncounted node-locked and concurrent usage licenses can be mixed in the same license file.

The following license file allows unlimited use of feature "f1" on machines "17007ea8" and "1700ab12," while allowing two other licenses for feature "f1" to be used anywhere else on the network:

SERVER lulu 17001234 1700
VENDOR sampled C:\flexlm\sampled.exe
FEATURE f1 sampled 1.00 1-jan-2005 uncounted SIGN=signature1 \
        HOSTID=17007ea8
FEATURE f1 sampled 1.00 1-jan-2005 uncounted SIGN=signature2 \
        HOSTID=1700ab12
FEATURE f1 sampled 1.00 1-jan-2005 2 SIGN=signature3

This configuration requires an lmgrd and a vendor daemon because the concurrent usage of the two licenses on the third FEATURE line is counted.


 

Table of ContentsPreviousNextIndex
FLEXnet Licensing End User Guide
Version 10.8
July 2005
copyright