QA00000066168_Avoiding a Flexnet licensing port clash or pointing to a wrong license file

QA00000066168_Avoiding a Flexnet licensing port clash or pointing to a wrong license file

Question:
While using multiple applications driven by Flexnet licensing (such as SIMULIA CST, Abaqus etc.), how to check which licensing ports (TCP ports) are occupied by respective lmgrd processes?

Answer:
The user can have  multiple DS SIMULIA applications and their related Flexnet licenses installed locally or remotely in their environment. For example, one can have CST and Abaqus Flexnet licenses installed on the client machine or on a remote machine.

With multiple Flexnet services running on a server, there is a chance of pointing to a wrong license file or using an incorrect port number while configuring the application. For example, trying to run CST with an Abaqus license file or vice versa. This will lead into an error, further not allowing the user to run the application.

For example: If you try to run CST using a non-CST Flexnet license server, invalid license file, or with an incorrect port, then the following error might occur:

‘Problem with a license file. The license file does not contain a required feature’

Similarly, if you try to launch Abaqus or run a batch mode job using a non-Abaqus Flexnet license server, an invalid license file, or with an incorrect port, then the following error might occur:  

‘No socket connection to license server manager’ Or ‘Abaqus Error: License for a required feature is not available’

To avoid this scenario the user should know which TCP port is served for which lmgrd process. (lmgrd is an application-based version of the license server manager)

How to check which TCP ports are already occupied by lmgrd processes?

1. Open a command window on the license server, go to the license installation folder and look for executable lmutil.
            For example: Change to the “License Manager” folder of your CST installation (on the Linux, change to the Linux32 or LinuxAMD64 subdirectory) and enter the command:

            lmutil lmstat -c @<hostname or IP of license server or localhost>  
            For example: C:\Program Files (x86)\CST Studio Suite 2019\License Manager>lmutil lmstat -c @VCE2W10PLP

            lmutil - Copyright (c) 1989-2017 Flexera Software LLC. All Rights Reserved.
            Flexible License Manager status on Fri 5/22/2020 13:28

            [Detecting lmgrd processes...]
            License server status: 27000@ VCE2W10PLP
            License file(s) on VCE2W10PLP: C:\SIMULIA\License\2019\win_b64\code\bin\simulialm.lic:
            localhost: license server UP v11.13.1
            Vendor daemon status (on VCE2W10PLP):
            ABAQUSLM: UP v11.13.1

----------------------------------------------------------------------------

            License server status: 27007@VCE2W10PLP
            License file(s) on VCE2W10PLP: C:\Program Files (x86)\CST STUDIO SUITE 2019\license.dat:
            VCE2W10PLP: license server UP (MASTER) v11.16.2
            Vendor daemon status (on VCE2W10PLP):
            cstd: UP v11.16.2

            This output indicates that port 27000 is served for Abaqus while port 27007 is served for CST.

            This info helps the user to define proper license server while using the DS SIMULIA application.
            For example: In case of the above license server, the Abaqus user should use 27000@<hostname> while CST user should use 27007@<hostname>

2. If you know the port number correctly, then you can also try the command: lmutil lmstat -c    port@hostname to check the server status.

             For example:
            C:\Program Files (x86)\CST Studio Suite 2019\License Manager>lmutil lmstat -c 27007@VCE2W10PLP

3. If you have Abaqus installed on your machine, then you can check the license server status and port number from your machine itself.

           Command: abaqus licensing lmstat -c @vce2w10plp
           This command will give an output same as point #1

Solution:  In case, if you face this situation, then:

  1. Consider re-configuring your application with a correct TCP port and license server name.
  2. Setting the CST port to automatic should take care of this issue.
  3. Setting up @licservername in case of Abaqus should take care of this issue.