I have just installed a new Network License Manager, and would like to "retarget" my MATLAB installations to this new server.
MATLAB: How to change the license server used by MATLAB clients
MATLAB
Related Solutions
You can install an Individual MATLAB and a MATLAB Parallel Server license on the same machine. For R2008a and above this process is done simply by performing two installations and activating the licenses accordingly.
You can also install a network copy of MATLAB and MATLAB Parallel Server on the same node, using the same set of files. To install a network copy of MATLAB and MATLAB Parallel Server license on the same node, run the installation once using the MATLAB Parallel Server installation key and license. Once this is complete, rename the network.lic under licenses to mdcs.lic, and save a copy of the network.lic from another MATLAB client under licenses
For versions prior to R2008a, this will work out of the box for Windows and Mac machines. For Linux machines, this will work provided the network license manager for MATLAB Parallel Server is setup correctly. See the information below for the instructions for versions prior to R2008a.
Windows/ Mac installations:
==========
1) Install MATLAB and any toolboxes for your Individual license according to our instructions in the Installation Guide.
2) Once this installation is complete, move the 'license.dat' file out of the $MATLABROOT\bin\win32 (Windows) or the $MATLAB/etc (Mac) directory to a convenient place (such as the desktop).
NOTE: $MATLABROOT refers to your root MATLAB directory.
3) Start the installation for the MATLAB Parallel Server license (you will need a copy of the 'license.dat' file from the license server for this Concurrent installation).
4) Choose the same installation directory you used for the Individual license install.
5) When prompted you can choose to skip any products that were already installed
6) After the installation is complete, rename the new $MATLABROOT\bin\win32\license.dat (Windows) or $MATLABROOT/etc/license.dat (Mac) file to 'license.lic'.
7) Move the original 'license.dat' file which you moved in Step 2 back to the $MATLABROOT\bin\win32 (Windows) or $MATLABROOT/etc (Mac) directory.
You should now be able to use your Individual MATLAB and MATLAB Parallel Server on the same machine.
Unix/Linux instructions:
==========
Network License Manager installations:
If this installation will serve as the license manager for MATLAB Parallel Server, you will need to have the license for the individual license locked to the same hostid as the license for MATLAB Parallel Server. Once these licenses have the same hostid, combine the INCREMENT lines from both licenses into one license.dat. Once combined, follow the standard installation for MATLAB Parallel Server from the installation guide here:
Once the installation is complete, you will need to configure the options file for the Individual license. Refer the to the installation guide for more information about configuring the options file here:
Client installations:
If this machine will act as a client for the MATLAB Parallel Server, follow the instructions below:
1) Install MATLAB and any toolboxes for your Individual license according to our instructions in the Installation Guide.
2) Once this installation is complete, move the 'license.dat' file out of the $MATLABROOT/etc directory to a convenient place (such as the desktop).
NOTE: $MATLABROOT refers to your root MATLAB directory.
3) Start the installation for the MATLAB Parallel Server license (you will need a copy of the 'license.dat' file from the license server for this Concurrent installation).
4) Choose the same installation directory you used for the Individual license install.
5) When prompted you can choose to skip any products that were already installed
6) After the installation is complete, rename the new $MATLABROOT/etc/license.dat file to 'license.lic'.
7) Move the original 'license.dat' file which you moved in Step 2 back to the $MATLABROOT/etc directory.
You should now be able to use your Individual MATLAB and MATLAB Parallel Server on the same machine.
NOTE: Starting in R2019a the following name changes occurred:
- MATLAB Distributed Computing Server was renamed to MATLAB Parallel Server
- mdce_def was renamed to mjs_def
- mdce binary was renamed to mjs
This error message indicates that the hostname specified in the license file the license manager is using does not match the hostname of the computer trying to start the license manager. For example, one may see:
14:59:21 (lmgrd) "matlab-server-01": Not a valid server hostname, exiting.14:59:21 (lmgrd) Valid license server system hosts are: "ml-license-serv-01"
In this instance, ml-license-serv-01 is recorded in the license file, but matlab-server-01 is the computer's hostname. To resolve this problem, you will need to change the server line from:
SERVER ml-license-serv-01 1111222233334444 27000
to
SERVER matlab-server-01 1111222233334444 27000
Once you have updated the server's license file, be sure to restart the license manager and update the license file for each client accordingly. If you are unable to resolve this error, please contact MathWorks Licensing and Installation Support.
Related Question
- Do I receive License Manager Error -3
- If I change the hostname of the license server, what changes will I have to make to the server and client installations
- Do I receive License Manager Error -14
- Using two license servers
- Is it possible to use LMTOOLS to administer or control a remote license manager
- Do I receive a “FLEXnet Licensing error:-17,xx. System Error: 10054 “WinSock: Connection reset by peer” on the license server
- Do I receive License Manager Error -18
Best Answer