- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- Wildcard for Hostname and Hostgroup ?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Wildcard for Hostname and Hostgroup ?
Hello,
In option file is it possible to use wildcard to reserve some features/licences to some hostnames beginning par by a caracter chain (without having to record all hostnames in a group) ?
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@OrMlSLS, the short answer would be YES. But, there are some concerns because of which FNP documentation presents some thoughts on the same.
>> For SERVER line:
If the INTERNET hostid is used on the SERVER line, wildcards should not be allowed in the IP address. If wildcards are used, the user could easily start license server managers on more than one node and obtain additional licenses.
>> Using Wildcards in Domain Names:
When using HOSTID in a FEATURE or INCREMENT line, you can use a wildcard character in the domain name. For example, the following value allows the feature to be checked out by any hostname in the Revenera domain:
HOSTID=HOSTNAME=*.revenera.com
When wildcards are used in license files in this way, you must alter your licensing code in your FlexEnabled application. Use the Flexible API function lc_set_attr to set LM_A_USE_FQDN to 1, as shown in the following example code:
(void)lc_set_attr(lm_job,LM_A_USE_FQDN,(LM_A_VAL_TYPE)1);
>> WildCard is allowed with IP address based node-locking. For example, 198.156.*.* means any host with a matching internet IP address