To update the Network License Manager, you must first obtain the updated License File then install the updated License Manager software using the MathWorks Installer or manually update the License Manager binaries.
The following instructions are for:
- Obtaining the update License File
- Updating the License Manager using MathWorks Installer
- Manually updating the License Manager using the binaries
Obtaining the updated License File (Required)
Updating the network license manager requires that the license server already be activated on the MathWorks website.
To obtain the updated license file:
- Open the license in the License Center
- Click the "Install and Activate" tab
- Under 'Get License File,' click the down arrow to download the license file or the envelope to email the license file.
If you see "Activate to Retrieve License File," then you will need to activate the license. For information on installing the License Manager with a new network license, please refer to the following article:
If you are transferring the license to a new license server, you will be required to first deactivate before reactivating to the new license server:
Updating the License Manager using MathWorks Installer
Using the MathWorks Installer to update the license manager is recommended for new license administrators. Compared to updating the license manager manually, it takes longer but is less error-prone.
1) Stop the current License Manager service
(Windows Machines only) Stop and remove the service
On Windows, the existing license manager service must be removed before the installer can be used to create a new one.
To remove the existing service:
- Open the MATLAB installation folder.
- Open the folder "etc\win64."
- Start "lmtools.exe."
- Go to the "Start/Stop/Reread" tab.
- Click "Stop Server."
- Go to the "Config Services" tab.
- Click on the "Service Name" drop down menu, and select the service you would like to remove.
- Click "Remove Service."
- Reboot the server to save the changes to your registry.
(Linux and MacOS) Stop Server
Linux and MacOS do not share Windows' concept of services. Instead, use the lmdown script to stop the license manager before proceeding.
2) Download and run the MathWorks Installer
- Start the MATLAB installer.
- Click 'Advanced Options' at the top right.
- Select 'I want to install Network License Manager'
- Accept the terms of the Software License Agreement.
- When prompted for a license file, browse to the "license.lic" file that you downloaded from the MathWorks License Center.
- Select the destination folder
- To start the license manager to start at boot time, select "Configure the license manager as a service" (Windows only.)
- Click "Begin Install."
You may now start the License Manager as you had prior to the update.
NOTE: When updating the License Manager with the MathWorks Installer, the license.dat generated will not include the changes made to the SERVER line from your old license.dat. You may need to replace the SERVER line from your updated license.dat with the SERVER line from the outdated license.dat.
The old license manager will still be in the folder it was originally installed in. Now that the updated license manager has been installed, you may delete this folder.
Manually updating the License Manager using the binaries
If you are serving multiple vendors from your FlexLM server, or you simply prefer to do things manually, the license manager can be updated without using the MATLAB installer. While updating the license manager manually is faster than using the MathWorks Installer, it is more error prone and only recommended for experienced license administrators.
The license manager consists of three binaries, or four for Windows machines:
- lmgrd, the core license manager binary
- mlm, the MATLAB vendor daemon
- lmutil, a suite of tools for administering the license manager
- lmtools.exe, a graphical frontend for the license manager. (Windows only)
To update the license manager:
- Stop the license manager. On Windows machines, remove the License Manager service.
- Replace the binaries on the server with the ones you downloaded above.
- Update the license file.
You may now start the License Manager using the startup scripts.
When contacting us through a service request, please provide the license.dat and the debug log (lmlog). You may also find the help you need by visiting our support page!