Is it possible to allow a client machine to connect to a second MATLAB server if the first server does not have any MATLAB keys available?
MATLAB: Can I configure MATLAB to utilize multiple licenses from multiple license servers
2concurrentlicensesMATLABmultipleservers
Related Solutions
To Install the Network License Manager, you must first activate and obtain the license file then install the license manager software using the MathWorks Installer or manually install using the license manager binaries.
The following instructions are for:
- Activating the network license and obtaining the license file
- Installing the license manager with the MathWorks Installer for R2020a and newer
- Installing the license manager with the MathWorks Installer for R2019b and older
- Manually installing the license manager using the binaries
- Installing MATLAB on client machines
- Controlling access to your MATLAB license
Activate the network license and obtain the license file (Required)
To install the network license manager, the license server must first be activated on the MathWorks website to obtain the license file. For R2019b or earlier, you will also require the File Installation Key.
To generate a license file and the File Installation Key:
- Open the license in the License Center
- Click the "Install and Activate" tab
- Click "Activate to Retrieve License File" (If you see "Activated Servers" instead, skip ahead.)
- Enter the release, operating system, host ID and activation label (What is my host ID?)
- Click "Download license file" or "Email license file"
- Copy the File Installation Key (For R2019b and earlier)
If you see a screen called "Activated Servers" when you click the "Install and Activate" tab then your server is already active. For information on updating you License Manager, please refer to the following article:
Once you obtain the license file, and the file installation key for R2019b and earlier, you may proceed to the following instructions for installing the license manager using the MathWorks Installer or installing the license manager manually using the license manager binaries,
(R2020a and later) Installing the license manager with the MathWorks installer
The license manager installer is part of the MATLAB installer. The MathWorks Installer can be downloaded here. Once you have the 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."
- Start the license manager
(R2019b and earlier) Installing the license manager with the MathWorks installer
As with the newer MathWorks Installer, the license manager is part of the Installer. The MathWorks Installer can be downloaded here. Once you have the installer:
- Start the MATLAB installer.
- Select "Use a File Installation Key"
- Accept the terms of the MATLAB Software License Agreement.
- Enter your File Installation Key.
- Confirm the installation path
- Select the "License Manager" from the list of products to install.
- Uncheck other products unless you also want to install the MATLAB client software on this machine. Use the checkbox at the top of the list to select or deselect all products.
- When prompted for a license file, browse to the "license.lic" file that you downloaded from the MathWorks License Center.
- To start the license manager to start at boot time, select "Configure the license manager as a service" (Windows only.)
- Click "Install."
- Start the license manager
Manually installing 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. This is only recommended for experienced license administrators.
The license manager binaries can be downloaded here:License Manager Download
The license manager consists of four binaries:
- 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 install the license manager manually:
- Extract the downloaded folder and place the folder in the desired destination
- Place the license.lic into the /etc folder.
- Edit the license.lic to include the SERVER and DAEMON lines then rename it to license.dat
- Create a text file to use as the debug log (lmlog.txt)
- Start the license manager
For information on adding the SERVER and DAEMON lines, please refer to the following article:
NOTE: When installing the license manager manually on Windows, the network license manager service will not be configured in lmtools.exe automatically. You will need to configure the service manually .
Installing MATLAB on client machines
You will need a copy of the license.dat file to install MATLAB or other MathWorks products on client machines. This file is inside the license manager installation folder:
- Open the folder where the license manager is installed.
- Open the folder "etc."
- Create a copy of the file "license.dat." Do not remove the file from this directory.
For more information on installing MATLAB and other MathWorks products on client machines, please see the following article:
Controlling access to your MATLAB license
If you have a Network Named User license, or you would like to restrict access to products on your license, you will need to use an options file.
To create an options file, please see the instructions in the following article:
Contact us with any errors
If you receive any errors while updating the License Manager, please visit our support page or contact us with the license.dat, debug log (lmlog), and options file (if you have one) attached.
If you change the hostname of the license server, you will not need to generate a new license file, but you may need to update the SERVER line in the existing client and server license files, or environment variables. The license file is locked to either the MAC address or IP address of the server, so it is not necessary to activate and generate a new license file.
The second entry in the SERVER line of the license file identifies the license server by hostname or IP address. Any license file that references the hostname must be updated to the new hostname. Similarly, any client that uses the "LM_LICENSE_FILE" (or "MLM_LICENSE_FILE") environment variable with the "port@hostname" notation must be updated to use the new hostname.
For instructions on how to update the client license file, see the Related Solution listed below.
Related Question
- How to change the activation of a MATLAB installation from Individual or Designated Computer to Concurrent
- Do redundant servers fail to run properly if the primary server is killed
- What are possible/necessary License manager configurations in a MDCS setup
- How to transition away from the Redundant Server (Triad) setup
- What are the differences between the license.lic, license.dat, network.lic, and license_info.xml license files
- How to install an Individual MATLAB and a MATLAB Parallel Server worker on the same machine
Best Answer