How to Set Up the Ansys License Manager and the Client

« Go Back

Information

 
ProblemHow do I set up the Ansys License Manager?
Solution

Here's how to set up a license server:

1. Install the ANSYS License Manager. This is available from the main installation window for both STK and ODTK applications.

User-added image

2. Get a license file. To do this, first find the Disk Serial Number (Windows) or MAC Address (LINUX server) and HOSTNAME from START –> ANSYS License Management Center -> License File Options -> Get System Hostid Information. For existing customers, send this information to AGI support along with any other relevant information, such as PO or invoice number and account/customer ID. If you are evaluating the STK application, you can request a license on line here
 

User-added image

3. Manually edit the license file, if needed.

SERVER <Hostname or IPAddress> <Hostid> [TCP/IP port]
VENDOR ansyslmd [path to ansyslmd] [options="path to options file"] [port=daemon TCP/IP port]

Do not edit the Hostid value!
 

4. The same firewall requirements as used with previous versions of the STK application still apply. You need to allow either the TCP ports or the lmgrd and ansyslmd (daemon) as exceptions. Ensure that the TCP/IP port 1055 (unless it was changed in the license file) and vendor/daemon ansyslmd.exe located in C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64 are whitelisted through the firewall. The vendor/daemon ansyslmd.exe selects a dynamic TCP/IP interconnect port by default, but you can specify a static port by modifying the license file's VENDOR line to something like "VENDOR ansyslmd PORT=1056" if needed.

5. Back in the ANSYS License Manager -> License File Options -> Add a License File, browse to and open your license file. This will automatically start the service. If not, you can do so from the Home -> View Status/Start/Stop License Manager page.

User-added image

NOTE: If you have an existing license file(s) on the same server, do not BROWSE to load a new file, as it may bump your existing license file into a back-up directory. In this case, simply place your new license file in the directory that the Ansys License Manager expects to find them (for example: C:\Program Files\ANSYS Inc\Shared Files\licensing\license_files). Then you can stop/restart the server via the Home -> View Status/Start/Stop License Manager.

Also, the new license file has to have the same "Issue Date" as the existing license file. If the two license files do not have the same date of issue and there are matching segments in each file — for example, stk_mission_level1 with issue date of 01-Jan in the existing license file and stk_mission_level1 with issue date of 15-Nov in the new license file — the new file will overwrite the existing license file instead of adding an additional license to the license pool. 


The Ansys License Management Guide has additional information. You can find it in the Ansys License Manager install; the default location on Windows is C:\Program Files\ANSYS Inc\Shared Files\Licensing\licadmin\docu\ansys_license_management_guide.pdf.

Point the client to the license server

You now need to point the client application to the license server. In Windows, go to START -> STK 12 or AGI ODTK7. Right-click Ansys Client License Settings and select to Run as administrator*. Enter the Port and Server name (or IP address); the default Port number is 1055. Click Test and, if it passes (turns green), click Save. You can enter more than one server, and the STK application will attempt to check out a license from all of them in the order in which they are listed.

User-added image

NOTE: If you did not select Run as administrator, you may see this error:

User-added image

Alternately, you can set an environment variable, User or System variable, which may not require administrator permissions. The result will be the same: the STK application will find the licenses.

ansyslmd_LICENSE_FILE="{Port}@{Server 1}"

Here is an example.

image.png

That’s it. You can now run the application!
 

Product 
Version(s)
TitleHow to Set Up the Ansys License Manager and the Client
URL NameHow-to-license-STKv12-3

Related Files

LicChanges.pptx