1.1. Understanding the ansyslmd.ini File

A number of the options in the Ansys Licensing Settings utility modify the ansyslmd.ini file that is located in the licensing directory. Because of this, it is generally a good idea to have an understanding of the contents and purpose of the file. Entries in the ansyslmd.ini file tell Ansys, Inc. products which license server(s) to query to find a valid license. Using this option allows all users at your site to use this setting without having to individually set the ANSYSLMD_LICENSE_FILE environment variable to specify the license server machine(s). It also eliminates the need to have a copy of the license file on every system at your site. Additionally, if you are using Ansys Elastic Licensing, the ansyslmd.ini file contains your Cloud License Server ID (CLSID) and pin (CLSPIN).

1.1.1. ansyslmd.ini Server Entries

The order that the SERVER lines are listed in the ansyslmd.ini file dictates the order in which the license servers are queried when attempting to check out a license.

You are not limited to designating one set of license server machines for your network. You can have multiple single-server or three-server (redundant triad) licensing systems on your network. In this situation, you would have certain licenses connected to a set of server machines (one or three) on the network, and other licenses connected to a different set of server machines (one or three) on the network.

Each server's specification entry in this file will typically begin with SERVER= to specify the server port numbers.

On a single server:

SERVER=<flexnetport>@<host>

For multiple single servers, each server should have its own SERVER= lines.

On redundant (triad) servers on Linux platforms:

SERVER=<flexnetport>@<host1>:<flexnetport>@<host2>:<flexnetport>@<host3>

Windows platforms use semicolons (;) instead of colons:

SERVER=<flexnetport>@<host1>;<flexnetport>@<host2>;<flexnetport>@<host3>

Do not use commas as separators; use colons (:) on Linux machines and semicolons (;) on Windows machines.

You must use the port@host format; you cannot enter a path or a filename in place of the hostname.

Modifying the Server Order:

You can use the ANSYSLMD_LICENSE_FILE environment variable to supersede the existing server configuration. The servers that are defined in the ANSYSLMD_LICENSE_FILE environment are added to the beginning of the server path.

For example, if your ansyslmd.ini file contains the line SERVER=server1;server2 and and your ANSYSLMD_LICENSE_FILE environment variable contain server3 and server4, your server path will be server3, server4, server1, server2.

If you set the ANSYSLMD_LICENSE_FILE environment variable on a three-server (redundant) system, specify all three systems in the same order as the SERVER lines are listed in the license file. If you specify only the master and it is down, you could see a "License Server Down" or "No License Found" message and the search for a license could fail. Join redundant or multiple single server systems by separating the system names with colons on Linux systems and semicolons on Windows systems.

1.1.2. ansyslmd.ini Elastic Licensing Entries

The ANSYS_ELASTIC_CLS entry contains your computer's CLSID and CLSPIN. This entry is appended to your ansyslmd.ini file when you add or update them by using the options in the Ansys Licensing Settings utility. For more information, see Changing the Elastic Licensing PIN .

ANSYS_ELASTIC_CLS=<CLSID>:<CLSPIN>

Alternatively, if you are comfortable modifying the text in the ansyslmd.ini, you can enter the CLSID and CLSPIN manually.