How to Use lmgrd as an Alternative to lmadmin
To use Thermo Scientific Software, you must have version 11.19.0 or higher of the FlexNet tools installed on your system. You can download the latest version of these tools via the following links.
Windows:
FlexNet tools 11.19.8 for Windows 64-bit
Linux:
FlexNet tools 11.19.8 for Linux 64-bit
Note: You must install your licenses before starting the server. To manage the licenses of a Thermo Scientific software product, refer to License Administration.
On Windows
Information Needed to Create the License Server File
To generate a FlexNet server license file, you need to obtain the following information about the system on which the license server will run:
-
Host ID (that is, Ethernet address)
-
Hostname (or IP address)
Here are the instructions for capturing this information.
- On the system where the FlexNet server is running or will run, execute LMTOOLS. It should be located in:
-
<server_install_dir>\FlexNetLicenseServerTools\lmtools.exe
- Open the System Settings tab.
- The Computer/Hostname field contains the required hostname.
- The Ethernet Address field contains the required Host ID.
- The IP Address field contains the optional IP address.
- Save the lmhostid output and the hostname (or IP address) to create the server license file.
Install the FlexNet Server
-
Create the server license file in:
<server_install_dir>/FlexNetLicenseServerTools/passwordServer.dat
-
Enter your information:
SERVER <hostName> <hostId> [<portNumber>]
VENDOR <vendor name> [port=<vendor portNumber>]
For example:
SERVER BOD1060 0024e83de91e
VENDOR asglmd
Note: If you have multiple Ethernet addresses, use the first one.
At this point, we assume that the FlexNet files are installed in the default location:
<server_install_dir>/FlexNetLicenseServerTools/
FlexNet uses a program called lmgrd to manage licenses. On Windows, FlexNet provides an advanced tool called LMTOOLS, which enables the configuration of lmgrd to run as a service. This method is recommended for configuring FlexNet and is outlined in the following section.
Caution: To configure a license server as a service, you must have administrator privileges.
Note: The Vendor Daemon (asglmd.exe or mcslmd.exe) must be in the same directory as lmgrd.exe.
- Launch LMTOOLS and navigate to the Service/License File tab. Select the Configugation using Services option.
- Next, open the Config Services tab and proceed as follows:
-
Service Name field: Enter the name of the service that you wish to define. It is recommended that you use the name "Thermo Scientific Applications License Manager".
-
Path to the lmgrd.exe file field: Enter or browse to the lmgrd.exe for this license server. Typically, the path will be:
-
<server_install_dir>\FlexNetLicenseServerTools\lmgrd.exe
-
Path to the license file field: Enter or browse to the license file for this license server. It is recommended to copy the server license file to:
-
<server_install_dir>\FlexNetLicenseServerTools\passwordServer.dat
-
Path to the debug log file: Enter or browse to the debug log file that this license server writes to, such as FlexNet.log.(Prepending the debug log file name with the "+" character appends logging entries. The default location for the debug log file is the C:\WINDOWS\System32 folder. To specify a different location, ensure you provide a fully qualified path.) For most users, the following path should be appropriate:
-
<server_install_dir>\FlexNetLicenseServerTools\flexnet.log
-
(Optional) Click on View Log to display the log file. Verify that no logging errors occur (that is, the log file can be opened and contains readable text). Click on Close Log to close the log file.
-
To ensure that the license service is always running and automatically started upon system reboot, select the two checkboxes, Use Services and Start Server at Power Up, at the bottom of the dialog.
-
To save the new Thermo Scientific Applications License Manager service, click on Save Service.
Start the Server
Once the license manager service is configured, start lmgrd by initiating the service from the LMTOOLS interface:
- Launch LMTOOLS if it is not already running.
- LMTOOLS opens in the Service/License File tab.
- Click on Configuration using Services
- In the selection box, select Thermo Scientific Applications License Manager from the service list.
- Open the Start/Stop/Reread tab.
- Click on Start Server to start the Thermo Scientific Applications License Manager.
- The license server should now be running and writing its debug log output to <server_install_dir>\FlexNetLicenseServerTools\flexnet.log.
Note: Any time you modify the server configuration, stop and restart the server for the changes to take effect.
Note: Any time you modify the server licenses, use the Start/Stop/Reread tab and press the ReRead License File button. If the operation fails the first time, wait a few seconds and retry.
On Linux
Information Needed to Create the License Server File
To generate a FlexNet server license file, you need to obtain the following information about the system on which the license server will run:
-
Host ID (that is, Ethernet address)
-
Hostname (or IP address)
Caution: Administrator rights are required (non-root user) to install lmadmin.
Here are the instructions for capturing this information:
- On the system where the FlexNet server is running, open a command shell and navigate to the directory where the server will be installed:
-
cd <server_install_dir>/FlexNetLicenseServerTools
- To get the host ID, execute the lmhostid program as follows:
-
./lmutil lmhostid
The output will look like:
lmhostid - Copyright (c) 1989-2013 Flexera Software LLC. All Rights Reserved.
The FlexNet host ID of this machine is "012345678901"
Only use ONE from the list of hostids.
If the command fails with the error: "No such file or directory", you must install as root the LSB (Linux Standard Base) libraries.
- To get the hostname, you can use the following command:
-
./lmutil lmhostid -hostname
- (Optional) To get the IP address:
-
./lmutil lmhostid -internet -v4
- Save the lmhostid output and the hostname (or IP address) to create the server license file.
Install the FlexNet Server
-
Create the server license file in:
<server_install_dir>/FlexNetLicenseServerTools/passwordServer.dat
-
Enter your information:
SERVER <hostName> <hostId> [<portNumber>]
VENDOR <vendor name> [port=<vendor portNumber>]
For example:
SERVER BOD1060 0024e83de91e
VENDOR asglmd
Note: If you have multiple Ethernet addresses, use the first one.
At this point, we assume that the FlexNet files are installed in the default location:
cd <server_install_dir>/FlexNetLicenseServerTools/
The Vendor Daemon (asglmd or mcslmd) must be in the same directory as lmgrd.
The command to start the server looks like:
./lmgrd -c <server_license_file> -l [+]<debug_log_path>
Where:
- <server_license_file> is the full path to the server license file.
- <debug_log_path> is the path to the debug log file.
Prepending the "+" character to the log file name causes log entries to be appended.
Here is the suggested command to use:
./lmgrd -c passwordServer.dat -l +flexnet.log
Note: Whenever you make changes to the server licenses, use the mentioned command. If the operation fails initially, wait a few seconds and try again.
Note: It can be convenient to set up the server to start automatically upon system reboot. This involves editing the system boot script.
For information on how to start lmgrd automatically under UNIX (Linux), refer to The FlexNet Publisher – License Administration Guide section – “License Server Manager “lmgrd”.
Manage your Licenses
-
To manage the licenses of a Thermo Scientific software product, refer to License Administration.
-
To reread the license file and start the Vendor Daemon, use the following command:
./lmgrd lmreread -c <server_license_file> -vendor <vendor_name (asglmd or mcslmd)>
Note: After making any change to the license server, you must stop the asglmd/mcslmd process. This process will be automatically reloaded by lmgrd to apply the changes.
Note: If you encounter any issues with your configuration, ensure that lmgrd and the Vendor Daemon can communicate through the firewall.