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.
Best Answer