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

150 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 4 May 2022 at 4:00
Edited: MathWorks Support Team on 10 May 2022 at 17:30
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 through 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: 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 to R2020a, lmutil will be located in the $MATLAB/etc/$ARCH directory and can be used in the same way that it is on Windows.
As of R2020a, the "etc" folder is no longer included with the installation of MATLAB. Therefore you can manually create it by downloading the License Manager binaries, then making an "etc" folder.
Or you may install the License Manager 
The last option would be to create a network share for the license manager log file. 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.
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.

Community Treasure Hunt

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

Start Hunting!