question

Steven Hamoen avatar image
0 Likes"
Steven Hamoen asked Karan commented

Using the options file on a license server

We are hosting 4 licenses on our server and we would like that certain people can only check out certain licenses. According the information in the FlexNet Publisher License Administration Guide we thought this should be possible with the use of the INCLUDE_ENTITLEMENT option. So we defined GROUPS and each license has an INCLUDE_ENTITLEMENT with the group. So in the option file it looks something like this:

GROUP ABC person1 person2

INCLUDE_ENTITLEMENT xxx.com01-AAAA-BBBB-CCCC-FSENT22.0 GROUP ABC

But this is not working because if a person that doesn't belong to any group asks for a license, one is given. One could say that we should use exclude but that is also not fail proof because if somebody is not in a group he would get access to a license. Is there somebody with experience with the option file that has any idea how to solve this?

EDIT:

I looked further in the GUIDE and found this example:

INCLUDE_ENTITLEMENT Example

INCLUDE_ENTITLEMENT gy7210 USER tom

INCLUDE_ENTITLEMENT gy7210 USER anthony

INCLUDE_ENTITLEMENT gy7210 HOST jupiter

This options file does the following:

• Allows the user tom to activate any licenses contained in the fulfillment record obtained using the entitlement Id gy7210 on any system on the network.

• Allows the user anthony to activate any licenses contained in the fulfillment record obtained using the entitlement Id gy7210 on any system on the network.

• Allows any user, as long as they are on the host jupiter to activate any licenses contained in the fulfillment record obtained using the entitlement Id gy7210.

• By implication, denies the activation of any licenses contained in the fulfillment record obtained using the entitlement Id gy7210 to anyone except tom, anthony, or someone on the host jupiter

So if I read the last point it should work the way I intented. But studying further it also makes this remark:

To use the ENTITLEMENT modifier, you must set the variable ls_entitlement_based_pooling in lsvendor.c to 1 (default). This enables pooling based on the entitlement ID. For more information, see the Programming Reference for License File–Based Licensing, chapter Customizing the Vendor Daemon

@Ben Wilson can you check with development if this is the case? And on your earlier questions I don't see error message in the log and I the server is restarted in the meantime several times.

FlexSim 23.0.3
activate license serveroptions file
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel commented

You need to restrict access to all licenses first. Then you can allow license features to a set of users.

We do this by set a LM_PROJECT passphrase and include all features. Then we can compose a set of features to a special designed computer name. This should work for a different filter, too.

You can restrict some features by reserving them for some users (computers,...).

TIMEOUTALL 1800
RESERVE 1 dragdropconnect USER vogel
RESERVE 1 expertfit USER vogel
RESERVE 1 compile USER vogel
RESERVE 1 xmlsaveload USER vogel
RESERVE 1 stochastics USER vogel
RESERVE 1 consolescript USER vogel
RESERVE 1 nomodellimit USER vogel
RESERVE 1 entiretree USER vogel
RESERVE 1 createobjects USER vogel
RESERVE 1 optquest USER vogel
INCLUDEALL PROJECT FHLM1g43

here an older option example to control a version

INCLUDE expertfit:VERSION=5.1 PROJECT FHLM1g43


· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Karan commented

I'll answer my own question for documentation purposes. I solved it by using the features which means you get a large opt file but it does work. Suppose we have 2 licenses with each 1 seat and 2 different clients that can use those licenses. Each client has multiple employees capable of using FlexSim so I define groups:

GROUP Client1 John Peter

GROUP Client2 Jim Alice

#We use the MAX keyword to prevent the client using too many licenses

MAX 1 createobjects GROUP Client1

......

MAX 1 nomodellimit GROUP Client1


MAX 1 createobjects GROUP Client2

......

MAX 1 nomodellimit GROUP Client2


#We use the INCLUDE keyword to prevent somebody that is not known can take a license

INCLUDE createobjects GROUP Client1

......

INCLUDE nomodellimit GROUP Client1

INCLUDE createobjects GROUP Client2

......

INCLUDE nomodellimit GROUP Client2


The only thing is that it is not certain that Client1 also uses the createobjects feature of the license of Client1 but that doesn't matter. This could matter with different FlexSim versions but a version can be added to the different keywords to distinguish between the same feature belonging to different licenses.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.