Clear Filters
Clear Filters

Is it possible to have Matlab try for a network license first, then fail over to a standalone license if it can't get a network license?

3 views (last 30 days)
Is it possible to have Matlab try for a network license first, then fail over to a standalone license if it can't get a network license?
A network license is easier to keep up to date, but I have machines that must be able to start Matlab if the network happens to be down.

Accepted Answer

Rutuja Shirali
Rutuja Shirali on 31 Aug 2015
Edited: Walter Roberson on 31 Aug 2015
I believe this can be done in the following 2 ways :
  1. Using the environment variable MLM_LICENSE_FILE (or LM_LICENSE_FILE):
  2. Using the "-c" startup flag for MATLAB
Using the environment variable MLM_LICENSE_FILE (or LM_LICENSE_FILE):
By setting the environment variable MLM_LICENSE_FILE (or LM_LICENSE_FILE), you can insert a new license search path for MATLAB. The variable value will be searched first, but this will not override the original search path. The value for this variable can either be a path to a license file, or it can be used in the port@host notation. For example, to have MATLAB check against the server "license1" on port 27000, you would set the variable value to be: 27000@license1.
You can also manually specify the location of the license file with the -c option to the MATLAB startup script. This can be achieved by editing the "Target" field in the MATLAB shortcut.
For example:
  • Right click on the MATLAB shortcut and choose "Properties"
  • In the "Target" field, add -c and the path to the license file after the end quotation mark:
"C:\Program Files\MATLAB\R2009b\bin\matlab.exe" -c "C:\Program Files\MATLAB\R2009b\licenses\test.lic"
Using the -c flag will override any default license search paths unlike the MLM_LICENSE_FILE variable.
To find the default locations for MATLAB license files, see the related solution:
"Where are the license files for MATLAB located?" http://www.mathworks.com/matlabcentral/answers/99147

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!