MATLAB: How to specify which release of MATLAB users can have access to in the Options file

MATLAB

I have a multi-release license file and I want to specify which release of MATLAB different users have access to. How can I do this using the options file?

Best Answer

You can specify the release that a User or Group has access to in an options file by using the asset info tag from the license file.
Instead of listing the encryption key in the options file, you can use the “asset_info=” tag. You can simply add “asset_info=<xxx>”, where <xxx> is any character string, to the end of the INCREMENT lines if they are not already in the license file
For example, if you have a multi-release license file as below:
SERVER MyLicenseManager 001122334455 27000
DAEMON "C:\Program Files\MATLAB\R2010b\win32\mlm.exe" options="C:\Program Files\MATLAB\R2010b\win32\MLM.opt"
# BEGIN--------------BEGIN--------------BEGIN
# License No: 111222 HostID:001122334455
#
# R2017b
#
INCREMENT MATLAB MLM 17 01-jan-0000 11 8DE646541AFDDFE9416 \
HOSTID=ID=111222 USER_BASED DUP_GROUP=U asset_info=12345 SN=111222
INCREMENT SIMULINK MLM 17 01-jan-0000 11 2D66AD832109E0698 \
HOSTID=ID=111222 USER_BASED DUP_GROUP=U asset_info=111222 SN=111222
#
#R2012b
#
INCREMENT MATLAB MLM 17 01-jan-0000 7 9D164CBED8D11BCC72 \
HOSTID=ID=999888 USER_BASED DUP_GROUP=U asset_info=6789 SN=111222
#-------END-----------
Then you can restrict the release that they have access to in the options file using the asset info tag at the end of the INCREMENT line. The corresponding options file will look as below:
#Options file for use with MATLAB
GROUP MATLAB_users_R2017b user1 user2
GROUP MATLAB_users_R2012b user3 user4
#
#INCLUDE group for R2017b users
#
INCLUDE "MATLAB:asset_info=12345" GROUP MATLAB_users_R2017b
#
#INCLUDE group for R2012b users
#
INCLUDE "MATLAB:asset_info=6789" GROUP MATLAB_users_R2012b
This makes the options file easier to manage in the future because encryption keys change every release, whereas asset_info tags do not.