MATLAB: How to serve multiple MATLAB licenses from the same network license manager

MATLAB

How do I serve multiple MATLAB licenses from the same network license manager?

Best Answer

To serve multiple MATLAB licenses from the same network license manager, you need to activate both licenses to the server’s host ID and combine the contents of the license file into the same file.
Start by activating and installing one of your licenses on the server in question. The MATLAB installer will not accept a combined license file so you need to install the license manager using license file containing a single license. Instructions for this procedure can be found in How do I install or update the Network License Manager?
Once the license manager is running for one license, repeat the activation procedure (but not the installation procedure) for the second license. Once you have the license file for the second license, stop the license manager and open the license.dat file. By default, the license.dat file is located in the MATLAB installation directory.
Windows:
C:\Program Files\MATLAB\R20XXx\etc\license.dat
Linux:
/usr/local/MATLAB/R20XXx/etc/license.dat
Using a plain text editor, copy the contents of the license.lic file you downloaded from the MathWorks License Center for the second license into the bottom of the license.dat file on the server. Save the file. Repeat this procedure as necessary to add additional licenses.
Concurrent and NNU licenses
The most common scenario for separating two groups of users is serving a Network Concurrent and a Network Named User license from the same server. Please see How do I combine a Network Named User license with a Concurrent license on the same license server? for specific instructions on this setup.
Global Concurrent and Local Concurrent Licenses
If you choose to serve a local concurrent and global concurrent license from the same server, the local license must only be accessed by the users in the specified country.
To restrict usage of the license to users in the appropriate country, create an options file with user groups for each country, and then use asset_info tags to direct users to the appropriate license.
Please contact MathWorks support if you require assistance with separating the users of a Global Concurrent and Local Concurrent Licenses.