Installing a license server on Linux

The FlexNet vendor package with the binaries that are needed can be downloaded from the FlexNet Vendor Packages download page.

  1. Download the Linux 64 (FlexNet v11.19.2.0) zip-file for OpendTect Pro & dGB Plugins for OpendTect 6.4 and newer.

  2. Create a directory on the server that is to be used as license server for OpendTect. E.g. mkdir /opt/flexlm/opendtect

  3. Unzip the zip-file in the directory that has been created in previous step.

  4. The zip-file has the following files:
    dgbld : The dGB vendor daemon
    lmgrd : The FlexNet license manager daemon
    lmutil : The FlexNet license management utilities

  5. The next thing that is needed is the server license file. This license file will be provided by the dGB support via support@dgbes.com.
    Best is to place the license file in the same directory as lmgrd.

  6. The license file needs to be edited. Hence, open the license file with a text editor like Vim.

  7. In the top of the license file there is the SERVER line. The SERVER line format is:
    SERVER host hostid [port]
    For example:
    SERVER myserver 123456abcdef 27005

    Note that if no port is specified then the FlexNet server will listen on the first available TCP port in the range of 27000-27009. A valid port number is any unused port number in the range of 1024 to 65535. Ports below 1024 are privileged port numbers.

    Below the SERVER line is the VENDOR line. This line tells the FlexNet license manager daemon (lmgrd) where to find the dGB vendor daemon (dgbld). The VENDOR line format is:
    VENDOR dgbld full_path_to/dgbld [PORT=port]
    For example
    VENDOR dgbld /opt/flexlm/opendtect/dgbld port=43454

    It is important that you replace on the VENDOR line fullpath_to/dgbld with the path to the dgbld file. In this example we will change it into: /opt/flexlm/opendtect/dgbld .

    Note that if port is not specified then the vendor daemon will listen on an ephemeral random port at run time. A valid port number is any unused port number in the range of 1024 to 65535. Ports below 1024 are privileged port numbers.

    Save the license file.
  8. Ensure that the proper firewall exceptions are in place. There should be two exceptions for:
    1. The server TCP port, for the port specified in the license file, e.g. 27005
    2. The vendor daemon TCP port, for the port specified in the license file, e.g. 43454

Starting a license server

The license server can be started by executing commands:
cd /opt/flexlm/opendtect
./lmgrd -c licensefile.lic -l dgbld_debug.log

Please refer to the debug.log file in case of issues.

To see the license server status you may run:
./lmutil lmstat -a
You will then see the port number the server uses, the path to the license file(s) that are in use, whether the license server is up or down, how many licenses for the features are issued and in use.

You may want to start the license server with crontab, e.g. add line (with crontab -e):
@reboot /opt/flexlm/opendtect/lmgrd -c /opt/flexlm/opendtect/licensefile.lic -l /opt/flexlm/opendtect/dgbld_debug.log


Error messages

You may encounter error messages when starting the license server. Listed here are the most common ones and how to solve them.

Client installation

Please see the installing floating licenses chapter for more information on how to instruct the client on how to borrow the license from the server.