Contact Us

If you still have questions and are an active SimuTech customer, please submit a request.

  • Ansys Training
  • Consulting
  • About
  • Contact Support
  • Home
  • Installation

  • Troubleshooting

  • Errors & Solutions

  • How To's

  • Info

  • Remote Solve Manager

  • Employee Login

Can't find what you're looking for?

Contact Support

Installation & Licensing Center

Contact Us

If you are an active or future SimuTech customer and have questions or simply prefer to get help directly from an engineer, we'd be happy to help!

  • Home
  • Installation
  • Troubleshooting
  • Errors & Solutions
  • How To's
  • Info
  • Remote Solve Manager
+ More

INFO - Ansys License Server Commands

Authored by Caleb Scharf October 31st, 2022 6015 views 4 likes KB956502

Description

Ansys has multiple utilities that can be run from the command line to gather useful information.  This can sometimes be faster than using the different Ansys GUI tools to perform these same tasks.  

Solution

  • You must have the Ansys Client or License server software installed on the machine for these commands to work.  
  • Run the commands in a Standard or Administrator command prompt‍. 


Important

  • You must replace the text XXX in the folder path with your appropriate Ansys version. 
    • For Example" use "211" for 2021 R1 or "212" for 2021 R2 or "221" for 2022 R1, etc.
  • You must replace the text YourLicenseServerName with your license server name.
  • If the command does not required you to specify a license server, it will use the license server specified in your client license settings‍.


#

Description

Command

Example
1
Show license server status, features and what computer is using them

(FLEXlm)

Same as seen in "Licensing Client Settings" or legacy "Client ANSLIC_ADMIN utility"
"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\lmutil.exe" lmstat -a -c 1055@YourLicenseServerName
‍

2 Show server version, installed features and expiration dates 

(Licensing Interconnect)

Client Version 2020 R2 and Below*:

"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\ansysli_util.exe" -statli 2325@YourLicenseServerName

Client Version 2021 R1 and Above**:

"C:\Program Files\ANSYS Inc\vXXX\licensingclient\winx64\ansysli_util.exe" -statli 2325@YourLicenseServerName

*Will return incorrect license server version if the License Server is running 2021 R1 

**Command does not work if the License Server is running 2021 R1

‍

3

Show license expiration dates, quantities, customer number and more.

(Licensing Interconnect)

Client Version 2021 R1 and Above:

"C:\Program Files\ANSYS Inc\vXXX\licensingclient\winx64\ansysli_util.exe" -printavail

Client Version 2020 R2 and Below:

"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\ansysli_util.exe" -printavail
‍


4

Show license features currently in use and by who (not always helpful)

(Licensing Interconnect)

Client Version 2021 R1 and Above:

"C:\Program Files\ANSYS Inc\vXXX\licensingclient\winx64\ansysli_util.exe" -liusage

Client Version 2020 R2 and Below:

"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\ansysli_util.exe" -liusage
‍


5

Test the checkout of a license feature/increment 

(Licensing Interconnect)

Client Version 2021 R1 and Above:

"C:\Program Files\ANSYS Inc\vXXX\licensingclient\winx64\ansysli_util.exe" -checkout dsdxm

Client Version 2020 R2 and Below:

"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\ansysli_util.exe" -checkout dsdxm

*If needed, replace "dsdxm" with the license feature/increment of your choosing that exists in your license file.  Examples of common license features you may have:

  • Mechanical Products - "dsdxm" 
  • Fluid Products - "cfd_base" 
  • Electronics - "electronics_desktop" 
  • If needed, see HOW TO - Identify what license features you are attempting to checkout
  • The Product to License Feature Mapping Document‍ can also help here. 


6 Show currently specified license server(s) 

(Licensing Interconnect)

Structures/Fluids - Version 2021 R1 and Above*:

"C:\Program Files\ANSYS Inc\v211\licensingclient\winx64\ansysli_util.exe" -getlicpath

*Does not work if the License Server is specifically running 2021 R1.

Structures/Fluids - Version 2020 R2 and Below:

"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\ansysli_util.exe" -getlicpath

Electronics

"C:\Program Files\AnsysEM\Shared Files\Licensing\winx64\ansysli_client.exe" -getlicpath

Motor-CAD:

"C:\ANSYS_Motor-CAD\Shared Files\Licensing\winx64\ansysli_util.exe" -getlicpath
‍

7 Show the help menu for additional commands

(Licensing Interconnect)

Client Version 2020 R2 and Below:

"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\ansysli_util.exe" -?

Client Version 2021 R1 and Above:

"C:\Program Files\ANSYS Inc\vXXX\licensingclient\winx64\ansysli_util.exe" -?

8 Show the help menu for additional commands

(FLEXlm)
"C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\lmutil.exe" -?


Output Results to a Text File

There are two ways to output the results of a command to a text file. This can be helpful if you need to search or save the results.

  1. Redirect to a text file sing the command line
    1. Command Syntax  
      1. SomeCommand > SomeFile.txt
    2. Example Command (Update the Paths 
      • "C:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64\lmutil.exe" lmstat -a -c 1055@YourLicenseServerName > "c:\temp\LicenseStatus.txt"
  2. Select All Text > Copy > Paste
    1. Drag and select all text with your cursor.
    2. Press Ctrl+C to copy
    3. Open Notepad
    4. Press Ctrl+V to paste
commandscommand linecmd linecmd

Did you like this article?

Yes
No

4 out of 4 liked this article

Related Articles

INFO - Ansys Account Roles & Permissions

INFO - Ansys Hardware Recommendations & Supported 3rd Party Software

INFO - Ansys 3rd Party Software & Hardware Support

Popular Articles

INFO - Ansys Hardware Recommendations & Supported 3rd Party Software

Ansys Download & Installation Guide (Start Here!)

Ansys Troubleshooting Guide

ERROR - Hostid in the license file is not a valid hostid

Accessing the Ansys Customer Portal

Did you like this article?

Yes
No
Give feedback about this article

Can't find what you're looking for?

Contact Support

Recently Updated

  • ERROR - HTTP Error When Gathering Diagnostics
  • HOW TO - Verify Licenses Can be Checked Out
  • INFO - Understanding Ansys License Files (ansyslmd.lic)
  • ERROR - Black screen in CFX-Pre and CFD-Post
  • INFO - Ansys Version & Release Date History
  • HOW TO - Change Discovery Licensing Mode
  • ERROR - Failover feature 'Discovery - level 1' is not available
  • HOW TO - Add Elastic Licensing in Client Licensing Settings
  • ERROR - spawn lmutil ENOENT

General Inquiries & Sales:

(800) 566-9190

Info@SimuTechGroup.com

Contact Support

  • Software
  • Services
  • Case Studies
  • Ansys Training
  • Consulting
  • Technical Support
  • About SimuTech
  • Careers
  • Privacy

© 2021 SimuTech Group

Definition by Author

0
0
Expand

Thanks for your feedback!

How can we improve this article?

We're glad you liked the article!

What specifically did you like, so we can do that more!

Thanks for your time!

What feedback do you have for us?