How do I RESERVE licenses for specific users?

24 views (last 30 days)
How do I RESERVE licenses to prevent other users from accessing those features? Do I need an MLM.opt file to do so? How do I set my network license manager to use the MLM.opt?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Mar 2019
To reserve features based on username, you will first need to let the network license manager know that you are using an options file. On a Standalone Named User installation on UNIX/Linux/Mac and a Network Named User installation, an MLM.opt file should already be defined at the end of your DAEMON line in your license.dat.
For a concurrent license, you will need to add in the following to your license.dat's DAEMON line:
Where $MATLAB/etc is the location of the MLM.opt:
DAEMON MLM $MATLAB/etc/MLM options=$MATLAB/etc/MLM.opt
(NOTE: prior to R2011a, the DAEMON line on Linux/Mac was "DAEMON MLM $MATLAB/etc/lm_matlab")
Once you have added in the reference to the MLM.opt file, you will need to create the file.
To reserve a license inside the MLM.opt, add in the line given below with the correct syntax:
RESERVE num_lic feature USER name/groupname
num_lic = quantity of licenses to be reserved for that user
feature = feature name found after INCREMENT in the license.dat for that product to be reserved
name = name of user to reserve license for
For Example
*******************
You want to reserve 1 seat of MATLAB for the user "bsmith".
The appropriate line would look like this:
RESERVE 1 MATLAB USER bsmith
You can also use the GROUP function if you wish to reserve a feature for a group.
For Example
**************
You want to reserve 5 keys of Simulink for the group "simusers", which includes users bsmith, ddoe, jsmith, dsmith and eroe
The appropriate lines would look like this:
GROUP simusers bsmith ddoe jsmith dsmith eroe
RESERVE 5 SIMULINK GROUP simusers
Note Any licenses reserved for a user are dedicated to that user. Even when that user is not actively using the license it is unavailable to other users. However, a RESERVEd license does not cause usage to be reported by FLEXnet Manager if the license is not actually in use.

More Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!