I would like to serve my MATLAB licenses from a server currently running network license managers and vendor daemons for other products. Can this be done, and how can it be accomplished?
MATLAB: Is it possible to run multiple license manager daemons for different products on a single license server machine
MATLAB
Related Solutions
Before MATLAB clients are able to check out a license key from the license server with the Network Concurrent license, make sure that the License Manager is installed. Please see here for instructions:
How do I install or update the Network License Manager?
Once the License Manager is installed, copy the license.dat from the server (by default located in $MATLABROOT/etc, e.g. C:\Program Files\MATLAB\R2019b\etc) to a folder on the clients.
Deactivate MATLAB:
As a next step, remove the old license activation from the MATLAB installations. For instructions, see the following article:
How do I deactivate MATLAB?
Re-activate MATLAB:
After the deactivation is complete, launch MATLAB. It will ask for a new activation. In the Activation programme, select ‘Activate manually without Internet’. Proceed with the steps. When prompted for the license file, point to the license.dat file. MATLAB should now use the Network Concurrent license.
If you have another application that uses the network license manager, you can share a single license server, or set up separate license servers for each product. It is recommended to install the network license manager as a separate service in this type of configuration. To do so, see the instructions below:
To setup the additional service, you can simply install the license manager using the normal procedure. This procedure may be found here:
Once installed, you will need to ensure that the MATLAB license server uses a different port than your existing license manager(s). The license manager for MATLAB uses port 27000 by default. If your existing license server uses the same port, you will need to change the one for MATLAB.
To change the port for the network license manager edit the license.dat file located in:
$MATLABROOT/etc ($MATLAB\flexlm for releases prior to R2010b on Windows)
(where $MATLAB is the MATLAB installation directory). The port is specified on the SERVER line of the file. For example:
SERVER my-server 001122334455 27000
Change 27000 to be an open port on the computer. Once changed, you will need to restart the MATLAB license server service.
Once complete, the network license manager service will operate independent of your other license managers.
If you are still having issues and are on windows, open up lmtools.exe and make sure you have the "LMTOOLS ignores license file path environment variables" box checked.
It is also possible to set up the license manager as a single service. This is not recommended and should only be implemented by those with a good understanding of FlexNet. To do so, follow the instructions below:
NOTE: MATLAB requires the version of the FlexNet binaries that it has been shipped with. If you are sharing your license manager, make sure that you have an up-to-date version of lmgrd. Since FlexNet is backwards compatible, this should not cause any errors with previous versions.
When setting up a single license server for multiple vendors you will need to accomplish the following steps:
1. Lock all licenses to the same Host ID.
2. Concatenate all licenses into one license file.
3. Ensure that the combined license file has only one SERVER line
4. Create separate DAEMON lines for each vendor
To add MATLAB to an existing license file, you will need to add in the license code as well as a DAEMON line. The DAEMON line for MATLAB should be:
DAEMON MLM <path to the MLM daemon binary>
EX:
DAEMON MLM "C:\Program Files\MATLAB\etc\win32\mlm.exe"
The license manager binaries for MATLAB are located on the DVD in the following locations:
Windows DVD: win32\utils\lm\win32 or win64\utils\lm\win64
Unix DVD: utils\lm\$ARCH
Where $ARCH is the architecture for your license manager (ex: glnx86, maci, etc.).
Best Answer