学习中心

Course:

How to Work with the License Manager

How to View COMSOL® License Usage


For floating network, class kit, and COMSOL Server™ licenses, your COMSOL® software installation provides FlexNet® license utility programs that identify current users, their system information, and the licenses they currently have checked out.

If you are a user with license checkout access, you can view license usage information from any computer on the network; usage monitoring is not limited to the license administrator or the computer hosting the license server but requires that the FlexNet® utilities are available on the local machine.

In this article, we'll provide instructions for how to access usage information on Windows®, Linux®, and macOS, including an example showing the usage information for a license scenario on Windows®.

ℹ️

The instructions in this guide are based on the default installation paths. Note that your installation path may be custom and/or differ due to version and/or architecture.

Accessing Usage Information on Windows®

Using the LMTOOLS Utility

  1. Navigate to Start > All Programs > COMSOL Multiphysics 6.4 > COMSOL Launchers > LMTOOLS.
  2. On the Service/License File tab, choose Configuration using License File.
  3. Browse to the local license file: C:\Program Files\COMSOL\COMSOL64\Multiphysics\license\license.dat
    ℹ️

    The Open file dialog is preset to look for .lic files. To find the license.dat file, you will need to change the file type.

  4. Go to the Server Status tab and select Perform Status Enquiry.

Using the Command Line

If you are using the FlexNet® license manager for programs in addition to the {comsol} software, using the command line alternative in Windows® can provide greater flexibility and control. To use the command:

  1. Go to the folder C:\Program Files\COMSOL\COMSOL64\Multiphysics\license\win64.
  2. In the address field in Windows Explorer, write cmd and press Enter to get a command prompt in the mentioned folder.
  3. In the command prompt window, enter lmutil lmstat -a -c ../license.dat or lmutil lmstat -a -c 1718@licsrv.
    • Here, 1718 is the port and licsrv is the name of the host where the license manager was started.
Example

Let's assume that we have a floating network license (FNL) with two keys for COMSOL Multiphysics®, one key for the Structural Mechanics Module, and one key for the AC/DC Module. A user called jonas has been working on a solid mechanics model, while a user called sergey on a magnetic fields model. Both are using their local machines.

To get the usage information on a Windows® system, we opened a command line window and then used the command cd C:\Program Files\COMSOL\COMSOL64\Multiphysics\license\win64 to change the directory. Then, we ran the command lmutil lmstat -a -c ../license.dat to see the printout from lmstat.exe, which reflects that Jonas and Sergey are currently using the expected licenses:

Accessing Usage Information on Linux®

Open a terminal window and run these commands:

cd /usr/local/comsol64/multiphysics/license/glnxa64
./lmstat -a -c ../license.dat

Note: If you are running on ARM hardware, replace glnxa64 with glnxarm64.

Running these commands gives full information about current license usage, including information about currently unused licenses. To view only the information about licenses currently being used, try:

./lmstat -a -c ../license.dat | grep Users

Alternatively, if you know the host name of the license manager, you will not need the license.dat file. Instead, you can run the following commands:

cd /usr/local/comsol64/multiphysics/license/glnxa64  
./lmstat -a -c 1718@licsrv

You will need to include the default port (in this example, 1718) and the host name of the license manager (in this example, licsrv), which can be found on the first line of the license file (in this example, SERVER licsrv 123456789 1718).

For more information, enter the help command, ./lmstat -h.

Accessing Usage Information on macOS

Start the Terminal application and run these commands:

Apple Silicon

cd /Applications/COMSOL64/Multiphysics/license/macarm64
./lmstat -a -c ../license.dat

Intel CPUs

cd /Applications/COMSOL64/Multiphysics/license/maci64
./lmstat -a -c ../license.dat

Further Learning

For more information about the FlexNet® licensing system and more detailed administration options available through the lmutil and lmstat tools, refer to the License Administration Guide. Open the guide with the following steps:

  1. Open the COMSOL Documentation from the COMSOL Multiphysics® user interface (File > Help > Documentation or Ctrl+F1).
  2. Scroll to the bottom of the table of contents and open the "License Administration Guide" PDF shown under "FlexNet Documentation".

You can find more advanced usage tracking functionality through third-party tools like the FlexNet Manager® tools.


请提交与此页面相关的反馈,或点击此处联系技术支持