Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Managing the adskflex.opt Options File

Managing the adskflex.opt Options File

TravisNave
Mentor Mentor
43,526 Views
82 Replies
Message 1 of 83

Managing the adskflex.opt Options File

TravisNave
Mentor
Mentor

Issue:  You want to configure different licensing options for different user groups and networked licensed products using your Autodesk Network License Manager.

 

Solution: There is a way to manually configure the Autodesk Network License Manager to use different configurations for each license type, user, group, etc.  You need to create an Options file as instructed in the License Administration Guide.  Your options file should be created in a plain text editor like Notepad and must be named adskflex.opt.  Please ensure that file extensions are enabled so that you do not have a hidden .txt file extension appended to your filename.  Furthermore, the adskflex.opt options file must be saved in the same location as your Autodesk .lic license file.  To activate the options file, you need to reread the license from the Start/Stop/Reread tab of LMTOOLS.  You can then use your debug.log file to verify that the options are working properly.

 

Additional information about the adskflex.opt Options File can be found here:

 

http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=7459915&linkID=9240617

 

 

Creating and Implementing the adskflex.opt Options File

 

1.  To create an options file, simply open a plain text editor like Notepad and type the options that you wish to implement.

 

adskflex.JPG

 

2.  Make sure you then save the file as adskflex.opt and in the same location as your Autodesk *.lic file.  You will want to pull down the save type box to all files so that it will not save with a .txt extension.  Make sure file extensions are enabled to determine if a .txt has been appended. If so, simply rename the file as appropriate. 

 

saveas.JPG

 

3.  Open LMTOOLS and go to the Start/Stop/Reread tab and choose ReRead License File.  This will enable the options file that you just saved. 

 

reread.JPG

 

4.  You can verify that the options file is active by viewing the debug.log file.  You can do this from the Config Services tab in LMTOOLS by clicking View Log... or by opening the debug.log file in Notepad from the path specified on the Config Services tab.  You should see log entries for each successful option that you created.  Entries should look similar to the following:

 

16:52:45 (adskflex) Using options file: "C:\Program Files\Autodesk Network License Manager\License\adskflex.opt"
16:52:45 (adskflex) ALL FEATURES: INACTIVITY TIMEOUT set to 900 seconds
16:52:45 (adskflex) Max borrow interval for feature, 64300ACD_F , set to 48 hours
16:52:45 (adskflex) RESERVING 1 64300ACD_F  license for USER_GROUP Admins
16:52:45 (adskflex) MAX 1 USER_GROUP Users for 64300ACD_F
16:52:45 (adskflex) INCLUDE USER_GROUP Admins 64300ACD_F
16:52:45 (adskflex) Report log started (+C:\Program Files\Autodesk Network License Manager\report.rl).

 

You can use the adskflex.opt options file to split licenses into different groups, reserve licenses for power users, or limit the amount and time licenses can be borrowed.  For details on each available option, please see the License Administration Guide in the documentation of your Autodesk Network License Manager or from the Autodesk KB link provided above. 

 

Feature codes for each of your licensed products can be found within the PACKAGE and INCREMENT lines of the .lic license file provided by Autodesk.  A list of Autodesk 2012 feature codes can be found here:

 

http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=17288427&linkID=9243099

 

For your convenience I am attaching a ready-made adskflex.opt options file that includes all of the available compatible options for the Autodesk Network License Manager along with commented descriptions and examples. You can use this file as a starting point to create your own customizations.  Please unzip the file and edit with Notepad. 

 

Good Luck!

 



Travis Nave Send TravisNave a Private Message                                             Need help in your post? Mention me with @TravisNave



My Expert Contributions to the
Autodesk Forums:
FLEXnet License Admin | MSI Cleanup Utility | .NET Framework Cleanup Tool | IPv6 NLM Fix | adskflex.opt Options File | Combine .LIC Files
Accepted solutions (2)
43,527 Views
82 Replies
Replies (82)
Message 81 of 83

ShubhamRaturi
Contributor
Contributor

Hey @TravisNave ,

Instead of individual license we have collection of licenses.
We need exclude the collection, or we still need to exclude individual applications,


Example:
Using collection: 

# Defines a Civil Eng group and controls license usage:  
GROUP CivilTeam smithj jonesb whitef 
EXCLUDEALL 86829PDCOLL_T_F HOST_GROUP CivilTeam

 

Using Individual  

# Defines a Civil Eng group and controls license usage:  
GROUP CivilTeam smithj jonesb whitef 
EXCLUDEALL 87406NAVMAN_2021_0F HOST_GROUP CivilTeam

 

Best Regards

Shubham Raturi

Message 82 of 83

TravisNave
Mentor
Mentor

Excluding the collection will exclude all of the products in the collection.  Whereas excluding a single product will exclude just that product.  Use what works best for you in your situation.  The debug log should validate your exclusions.   Thanks!



Travis Nave Send TravisNave a Private Message                                             Need help in your post? Mention me with @TravisNave



My Expert Contributions to the
Autodesk Forums:
FLEXnet License Admin | MSI Cleanup Utility | .NET Framework Cleanup Tool | IPv6 NLM Fix | adskflex.opt Options File | Combine .LIC Files
0 Likes
Message 83 of 83

ShubhamRaturi
Contributor
Contributor

Hey @TravisNave ,

I have created an options file to limit the network license usage, but despite my efforts, people who are not added in the options file are still able to access the license. I am at a loss as to how to resolve this issue, and I would greatly appreciate your assistance in finding a solution.

 

Example of options file:

 


# Last updated: Feb 07, 2023 by SHBM

 

# Sets maximum borrow time of 1 days for a subscription

MAX_BORROW_HOURS 86829PDCOLL_T_F 24
MAX_BORROW_HOURS 72400VLTM_T_F 24

 

# Disables case sensitivity when defining groups/host_groups:
GROUPCASEINSENSITIVE OFF

 

# Defines Administrators group:
GROUP Administrators DARJ SHBM MCHI MOAV

 

# Including All groups in PDC collection (ACAD,Plant3d,Inventor,Etc)
INCLUDE 86829PDCOLL_T_F Administrators

0 Likes