4.1. Client Environment Variable Settings

You can set the following environment variables on individual machines to control their behavior, especially if you need it to be different from the general site configuration. These settings are especially useful for situations where you are testing a new product installation/license manager installation on a single machine before full site deployment, or other similar situations.

ANSYSLMD_LICENSE_FILE

Can be used to identify a license server machine or license file. If set, this specification is used before any other license path information. See License Files Settings Precedence for precedence information. The default port number assigned to ANSYS, Inc. is 1055. Therefore, if your server has the hostname alpha1 and the IP address of 10.3.1.69, you can identify the server to use as 1055@alpha1 or 1055@10.3.1.69.

ANS_FLEXLM_DISABLE_DEFLICPATH

Indicates that the default license path should not be searched when determining the licensing path in the ANSYS product. When this environment variable is set:

  • Only ANSYSLMD_LICENSE_FILE and ANSYSLI_SERVERS environment variable settings are used.

  • Only the ANSYSLMD_LICENSE_FILE environment variable setting is required.

  • Settings in the ansyslmd.ini file and the license file in the licensing directory will NOT be used. It will ignore the local server and will ignore the Specify the License Server setting.

ANSYSLI_SERVERS

Used to identify the server machine for the Licensing Interconnect. Set to port@host. The default port is 2325. This setting takes precedence over settings specified in the ansyslmd.ini file.

ANSYSLI_TIMEOUT_CONNECT

Used to specify the amount of time that elapses before the client times out if it cannot connect to the server. Default is 20 seconds. Minimum timeout period you can specify is 5 seconds and the maximum is 60 seconds. If the client determines that a server is not available in less time, it will cancel immediately.

ANSYSLI_TIMEOUT_TCP

Used to specify the amount of time that elapses before the client times out if it cannot get a response from the server. This setting applies only when the license server is running but is responding slowly (generally because of network issues or server load). Default is 60 seconds. Minimum timeout period you can specify is 30 seconds and the maximum is 300 seconds.

4.1.1. License Files Settings Precedence

ANSYS Licensing Interconnect settings have precedence in the following order:

  1. ANSYSLI_SERVERS environment variable

  2. If ANSYSLI_SERVERS is not set, use ANSYSLMD_LICENSE_FILE environment variable, replacing the FlexNet port number with the default Licensing Interconnect port number of 2325.

  3. Settings in the ansyslmd.ini file in the relative client licensing directory for ANSYSLI_SERVERS=keyword

FlexNet settings have precedence in the following order:

  1. ANSYSLMD_LICENSE_FILE environment variable

  2. Settings in the ansyslmd.ini file in the relative client licensing directory for SERVER=keyword.


Note:  The FlexNet environment variable LM_LICENSE_FILE is not supported with the ANSYS License Manager.



Release 18.2 - © ANSYS, Inc. All rights reserved.