9.1. Environment Variables

This section describes licensing-related environment variables and their usage.

ANSYSLIC_DIR

You may find this environment variable helpful for the Licensing Interconnect to locate files within the licensing directory structure. If the Licensing Interconnect is unable to locate files in their default location, it tries the directory path in this environment variable. If this environment variable is set, it should point to the directory that we refer to as the licensing directory; reference the diagram in Default Directory Structure. This default directory location is /ansys_inc/shared_files/licensing for Linux and <OS Drive>:\Program Files\Ansys Inc\Shared Files\Licensing for Windows.

The Licensing Interconnect and the Licensing Interconnect monitor use this environment variable as a fallback to locate most licensing-related files.

The Licensing Interconnect command options -ini and -log and the ansyslmd.ini keyword DEBUG_LOG_FILE use the ANSYSLIC_DIR environment variable (if it is set) and the default directory path is not used; these are so noted in the Licensing Interconnect command option description (Licensing Interconnect Command Options) or in the ansyslmd.ini keyword description (ansyslmd.ini Keywords). When possible, we recommend that you specify the full path name for command options and ansyslmd.ini keywords.

ANSYSLI_SERVERS

This environment variable is used to specify the Licensing Interconnect license path on client systems. Use the port@host designation to set this environment variable. The default port number is 2325 for the Licensing Interconnect. If it is more convenient, you may use this environment variable in lieu of the ANSYSLI_SERVERS=<port@host> setting in the ansyslmd.ini file on client systems. The environment variable setting will take precedence over the ansyslmd.ini file setting. You can list multiple Licensing Interconnect paths as a list, delimited by colons (:) on Linux and semicolons (;) on Windows.

ANSYSLMD_LICENSE_FILE

Use the port@host designation to set this vendor-specific FlexNet environment variable. The default port number is 1055 for the ansyslmd vendor daemon. The vendor-specific FlexNet license path environment variable is recognized by the Licensing Interconnect. If it is more convenient, you may use this environment variable in lieu of the SERVER=<port@host> setting in the ansyslmd.ini file on client systems. List multiple entries separated by colons (:) on Linux and semicolons (;) on Windows.

LM_LICENSE_FILE

The Licensing Interconnect does not use the generic FlexNet environment variable LM_LICENSE_FILE (used for setting the license path for all FlexNet-enabled products) in order to maintain acceptable performance levels.