OPERATION METHODS FAQ-946
Q2. Can license use be limited depending on the user?
Please tell me how to specify limitations on the number of analyses that can be run simultaneously to a specific user account.
A2. Limitations can be set for each user or host by using the option file.
An option file function provided by FLEXlm can be used. The following limitations can be defined for option files.
- Allow the use of a product to a specific user/host
- Reject the use of a product to a specific user/host
- Set maximum number of license use to a specific user/host
A license due to using/fixing an option file does not need to be issued again.
It is important to take caution such as not mistaking the description as it may lead to troubles such as not being able to use the license etc.
Specification method and specific examples of an option file are as follows.
Restart the license server once it has been set.
(1) Location and file name of the option file
In the default settings, the file "jri.opt" can be read from the directory where FLEXlm is installed.
The license file needs to be fixed when using a different directory or file name
Example: Change the third line of the license file (jripro.lic) to the following when an option file is created as C:\JRI\lic\optionfile.opt.
VENDER jri options= C:\JRI\lic\optionfile.opt
(2) Allow use of a product
Use the INCLUDE keyword when allowing the use of the product to a specified user/host.
INCLUDE module name USER/HOST user name/host name
Example: When allowing the use of JMAG-Designer to user01
INCLUDE JMAG-Designer USER user01
Example: When allowing the use of JMAG-Designer to host01
INCLUDE JMAG-Designer HOST host01
Users/hosts that are not defined in INCLUDE cannot use this product.
The use of all products included in the license file can be allowed if the INCLUDEALL keyword is used.
Example: When allowing the use of all products to user01
INCLUDEALL USER user01
(3) Reject use of a product
Use the EXCLUDE keyword to reject the use of the product to specific users/hosts.
EXCLUDE module name USER/HOST user name/host name
Example: When rejecting the use of JMAG-Designer to user01
EXCLUDE JMAG-Designer USER user01
Users/hosts that are not defined in EXCLUDE can use this product.
Use the EXCLUDEALL keyword to reject the use of all products included in the license file.
The way it is used is the same as INCLUDEALL.
(4) Setting maximum number of licenses used
Use the MAX keyword when specifying the maximum number of licenses that can be used by each user/host.
MAX maximum number of licenses used simultaneoulsy module name USER/HOST user name/host name
Example: When the maximum number of licenses used simultaneously in JMAG-Designer is set to "1" for user01
MAX 1 JMAG-Designer USER user01
The total maximum number of used licenses in the MAX line can exceed the number of licenses defined in the license file.
However, analysis cannot be run when the maximum number of licenses exceeds the number defined in the license file.
If there are multiple MAX lines for the same product, the least number will be set.
(5) Grouping users/hosts
Only one user/host can be specified as a target for INCLUDE, INCLUDEALL, EXCLUDE, EXCLUDEALL, and MAX.
Define the user group/host group beforehand and specify the group name in each keyword line to specify multiple users/hosts.
An arbitrary name can be specified to the group name.
GROUP group name user name/host name
Example: When registering user01 and user02 to UG01 and allowing the use of all licenses to the group UG01
GROUP UG01 user01 user02
INCLUDEALL GROUP UG01
Example: When host01 and host02 are registered to HG01 and the maximum number of licenses used simultaneously in JMAG-Designer is set to "1" for the group HG01
HOST_GROUP HG01 host01 host02
MAX 1 JMAG-Designer HOST_GROUP HG01
If the same group name is described in multiple lines, all specified users will be added to the appropriate group.
Example: Registering user01, user02, user03, and user04 to UG01
GROUP UG01 user01 user02
GROUP UG01 user03 user04
Mistaking the description may lead to troubles such as not being able to use the license etc.
Please note the following.
- The length of one line in the option file is up to 2048 letters. The letter "\" can be used as a continuation character of line. In addition, lines that start with "#" are assumed to be comment lines.
- Changes in the option file will not be reflected unless the license server is restarted. Changes in the option file cannot be reflected in utilities such as Imreread as the option file is only referenced when the server is started.
- Unexpected movements may result if the same user/host is registered in multiple groups.
- The EXCLUDE list is checked before the INCLUDE list so users/hosts that exist in both lists cannot use the product.