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

135 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 11 Jul 2022
Edited: MathWorks Support Team on 11 Jul 2022
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: 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 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.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!