Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Technical Solutions

Is it possible to run the MATLAB license manager on a computer with other FLEXnet applications?


Date Last Modified: Wednesday, October 7, 2009
Solution ID:   1-16RGP
Product:   MATLAB
Reported in Release:   No Release
Platform:   All Platforms
Operating System:   All OS
 

Subject:

Is it possible to run the MATLAB license manager on a computer with other FLEXnet applications?

Problem Description:

I have another product, in addition to MATLAB, that uses FLEXnet. I would like to know if it is possible to set up the MATLAB license manager to work on the same computer.

Solution:

If you have another application that uses the FLEXnet license manager, you can share a single license server, or set up separate license servers for each product. It is recommended to install the MATLAB 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:

http://www.mathworks.com/access/helpdesk/help/base/install/pc/ch2_con4.html

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 MATLAB license manager edit the license.dat file located in:

$MATLAB\flexlm (for Windows)
$MATLAB/etc (for all other operating systems)

Where $MATLAB is the installation folder for MATLAB. 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 MATLAB license manager service will operate independent of your other license managers.

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 seperate 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:\flexnet\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.).

Additional information regarding the use of FLEXnet can be found on Acresso's site at:

http://www.globes.com/support/utilities/flexnet_licensing_end_user_guide.pdf

 

Related Solutions:

Please provide feedback to help us improve this Solution
Contact support
E-mail this page
Print this page