cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
OrMlSLS
Level 2

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.

0 Kudos
(1) Reply
aparashar1
Flexera Alumni

@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

 

(If my response assists with your questions , then please click "ACCEPT AS SOLUTION" or 'Kudos' so that it help others.)
0 Kudos