Determining the Correct FlexNet Hostid

Question:

How can I determine the correct FlexNet hostid for my new license server?

Answer: 
For a given OS / hardware platform, there are multiple ways to determine the hostid. However, not all methods are valid with the FlexNet licensing scheme implemented by Synopsys. For every platform, this article provides two methods for obtaining a valid hostid for Synopsys licensing. 

Note: Normally, you determine the hostid for your license server with the lmhostid (or lmutil) utility. lmhostid ships with Synopsys Common Licensing. However, if you need to determine the hostid for a system that does not have SCL installed, an alternative method is provided below. Determine your hostid by using one of the following methods:

lmhostid Method

Networked ("Floating") LicensesNetworked licenses can be used by anyone on the network.
To determine the hostid, use the lmhostid command included with SCL:
% lmhostid
 lmhostid - 1989-2019 Flexera. All Rights Reserved.
The FLEXlm host ID of this machine is "001125c4a904"
NOTE: If more than one hostid is listed, any hostid may be used. However, for non-VM machines, the hostid should correspond to a physical device such as an ethernet card or ethernet chip embedded on the motherboard.

Dongle-based licenses

Dongle-based licenses are supported:

  • for specific tools only (for example, HSPICE or Synplify Pro)
  • on Windows and Linux x86_64 platforms only

If you have a dongle, the hostid is written on the device, which attaches to the USB port. To determine whether the dongle hostid is correctly detected, enter lmhostid -flexid. For example,
C:\> cd C:\Synopsys\SCL\2021.03\win32\bin
C:\Synopsys\SCL\2021.03\win32\bin> lmhostid -flexid 
lmutil - Copyright (c) 1989-2019 Flexera. All Rights Reserved.

The FLEXlm host ID of this machine is "FLEXID=10-0BED15A7"

 

Other Methods
In addition to lmutil, the following platform-specific methods of determining a hostid are supported. For the methods that involve quotes, be sure to use backquotes ( ` ) and not regular quotes.

Linux 

The Linux "hostid" command produces a 6- or 8-character result that is not valid as a Synopsys hostid.
Instead, get the 12-character ethernet address. For example: 
% /sbin/ifconfig -a | grep -i ether
The result might be:
ether 00:06:5B:82:F4:5A  txqueuelen 1000  (Ethernet)
-or-
Link encap:Ethernet  HWaddr 00:06:5B:82:F4:5A #For CentOS/RHEL 6.x

In this example, the hostid is 00065B82F45A
Note: 
If more than one hostid is returned, any hostid will be valid,
as long as it corresponds to a physical device. Synopsys suggests
you choose the first hostid on the list, which usually corresponds
to the ethernext device eth0, em1, en1, or similar.

Windows
For floating (networked) licenses--
Use the MAC address ("Physical Address") of your ethernet card:

  1. Click Start-Run and type "cmd"
  2. Type C:\Windows\win32\system32\ipconfig -all

Result:

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix:
Description . . . . . . . . . : 3Com 3C920 Fast Ethernet
Physical Address. . . . . . . : 00-06-5A-21-95-44==> In this example, the hostid is 00065A219544

Cloud (VM_UUID) 
For Amazon AWS, the hostid is the instance ID.
For other clouds (Azure, Google), you will need to install the FlexNet Licensing Service included with SCL,
then run this command from the SCL_Root/platform/bin directory:

% lmhostid -ptype VM -uuid
lmhostid - 1989-2019 Flexera. All Rights Reserved.
The FLEXlm host ID of this machine is "VM_UUID=42122EC8-299B-FAB0-43EA-3AF23BDA6D57"

 

For more information on Cloud setup, including installing the FlexNet Licensing Service, see the SCL Admin Guide.