Is there a way for licenses to be monitored from the client machine instead of the server?

140 views (last 30 days)
I would like to check on license usage for MATLAB from a machine that doesn't have the network license manager on it.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Feb 2019
It is possible to monitor licenses on a license server from a MATLAB client. As of R2009b, the necessary files are located in $MATLAB/etc/$ARCH (where $MATLAB is the MATLAB installation directory, and $ARCH is the directory specific to the architecture of the system. Choices include win32, win64, gnlx86, glnxa64, maci, maci64, sol64). For releases older than R2009b on Linux/Unix/Mac, you will need to manually copy the network license manager folder from an installation that includes the license manager.
On Windows, "lmutil.exe" can be used to monitor licenses. It needs to be run from the command prompt, not the Run... dialog (Start -> Programs -> Accessories -> Command Prompt.) This file can be found in $MATLAB\etc\win32 (or win64 for 64-bit installations). From the directory where lmutil is located, execute the following:
lmutil lmstat -a -c port@host
Where "port@host" is the port number of the license manager daemon, and hostname (or IP address) of the license server. This information can be found on the SERVER line of the license file. For example: 27000@test.u.edu. Alternately, you can give the path to the license file containing the server information as follows:
lmutil lmstat -a -c "path/to/license/file"
On Mac/Linux/Unix, run the following command from the MATLAB/etc/$ARCH directory in a terminal window:
./lmstat -c port@host -a
For R2009b and higher, lmutil will be located in the $MATLAB/etc/$ARCH directory and can be used in the same way that it is on Windows.
These commands will display who has checked out each product, where they checked it out, and when they checked it out.
As an alternative, you could create a network share for the license manager log file. This log file is for debugging purposes, but it does display license checkout information. On Windows, the location of the log file is specified in the "Config Services" tab of lmtools.exe, by default called lmlog.txt and located in $MATLAB\flexlm. On Linux/Mac/Solaris, by default the logfile will be located in /var/tmp/ and will be called lm_TMW.log.
  5 Comments
FTil
FTil on 25 May 2021
lmstat and lmutil no longer seem to include in the client side installation of matlab. Is there any command that replaces them?

Sign in to comment.

More Answers (1)

John Cameron
John Cameron on 21 Jan 2020
Same issue with port@host not working. As suggested by Corinne, specifing the local network.lic file (which is basically just a txt file with a shortcut to port@host !!) works as expected.

Tags

No tags entered yet.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!