MATLAB: Do IP addresses from a HOST_GROUP in the options file access the wrong license

MATLAB

I would like to restrict the use of two licenses via IP addresses. Specifically, I would like to INCLUDE a subnet to one of the licenses, and then EXCLUDE individual IPs within the subnet from the same license and INCLUDE these individual IPs to another license. When I have this setup, there are several IPs that access the incorrect license.

Best Answer

This issue is caused by a bug in the network license manager. This bug has been reported to Flexera, the makers of FlexNet.
If you have an options file in which you INCLUDE a range of IP addresses to one license, but then EXCLUDE individual IPs within this range from the same license, and INCLUDE these individual IPs to another license, IP address numbers 32 up and down from the original IPs can be affected.
To give an example:
- Assume we have two licenses, 123456 and 987654.
- We INCLUDE 192.168.1.* to license 123456.
- We then create a HOST_GROUP of individual IPs within the range of 192.168.1.* which we EXCLUDE from 123456.
- We then INCLUDE this same HOST_GROUP to 987654.
Here is our options file:
HOST_GROUP subnet 192.168.1.*
HOST_GROUP special_hosts 192.168.1.90 192.168.1.91
INCLUDE MATLAB:asset_info=123465 HOST_GROUP subnet
EXCLUDE MATLAB:asset_info=123465 HOST_GROUP special_hosts
INCLUDE MATLAB:asset_info=987654 HOST_GROUP special_hosts
In our example, only 192.168.1.90 and 192.168.1.91 are members of "special_hosts". The bug however causes 192.168.1.58 and 192.168.1.122 to be counted as members of "special_hosts" as well, on the grounds that 192.168.1.90 is a member. Similarly, 192.168.1.59 and 192.168.1.123 are counted as members of "special_hosts" on the grounds that 192.168.1.91 is a member.