How do I start or stop the Network License Manager?

1,355 views (last 30 days)
I would like to start or stop the Network License Manager for my MathWorks products.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Sep 2022 at 4:00
Edited: MathWorks Support Team on 9 Sep 2022 at 20:44
The Network License Manager can be started or stopped using the following methods depending on the Operating System of the server:
Windows
Option 1: Using LMTOOLS.exe (recommended)
To use the LMTOOLS Utility (lmtools.exe) to start the license manager, follow this procedure:
  1. Navigate in Explorer to $MATLAB\etc\win64, where $MATLAB is the MATLAB root directory on your machine. This is where you have MATLAB installed and is often C:\Program Files\MATLAB\R20XXx\etc\win64. The Xs represent the release number you are using.
  2. Double-click on lmtools.exe.
  3. Click on the Start/Stop/Reread tab.
  4. Click on the "Start Server" button to start the license manager, or the "Stop Server" button to stop it.
Option 2: Using Windows Services
While LMTOOLS is the recommended method, it is also possible to start and stop the license manager using the Windows services applet. To do so:
  1. Navigate to the "Services" control window. Generally this is listed as an item under "Administrative Tools" under the "Control Panel."
  2. Locate the "MATLAB License Server" service. If you have manually named the service, locate the name of that service instead.
  3. Double-click the service to bring up the Properties window, and use the appropriate buttons to Stop, Start, Restart, Pause, or Resume the License Manager.
Option 3: Start the license manager as an application via command prompt
It is also possible to start the license manager using the DOS (command) prompt. To do so, follow this procedure:
  1. Open up a Windows Command Prompt by opening the Windows Start Menu, typing in Command Prompt, and clicking the first result.
  2. Change directories in the prompt to the $MATLAB\etc\win64 directory, where $MATLAB is the MATLAB root directory on your machine.
  3. Type the following command:
./lmgrd -c <PATH_TO_LICENSE_FILE> -l <PATH_TO_LOG_FILE>
For example,
./lmgrd -c license.dat -l lmlog.txt
To stop the license manager from Command Prompt, enter the following command:
./lmutil -c <PATH_TO_LICENSE_FILE> lmdown -q
Linux/Mac OS Systems
For Linux/Mac OS, the license manager is started and stopped through the terminal. For Mac OS, Terminal can be launched from Applications/Utilities. Once you have a terminal window, the license manager can be started and stopped using the methods below:
Option 1: Using the license manager binaries
  1. Change directories in terminal to the $MATLAB/etc/maci64 directory on Mac OS or $MATLAB/etc/glnxa64 on Linux, where $MATLAB is the MATLAB root directory on your machine.
  2. Type the following command:
./lmgrd -c <PATH_TO_LICENSE_FILE> -l <PATH_TO_LOG_FILE>
For example:
./lmgrd -c license.dat -l lmlog.txt
To stop the license manager from Terminal, enter the following command:
./lmutil -c <PATH_TO_LICENSE_FILE> lmdown -q
Option 2: Using Boot Scripts
The license manager can also be stopped and started using the boot scripts. For more information on how to start or stop the license manager using the boot scripts, see the Related Solution "How do I get the Network License Manager to start automatically at boot time on Linux?"
  1 Comment
Pedro Martinez
Pedro Martinez on 17 Mar 2021
thanks for the reply. What a nasty procedure for the end user.

Sign in to comment.

More Answers (0)

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!