Retrieving and Specifying Hostids

The following table lists the methods used by the software user or publisher (depending on the use case) to retrieve hostids in the Amazon EC2 environment. The table also shows how a given hostid is used in the license file.

Obtaining any TPM, virtualization, or cloud-licensing hostid requires that the FlexNet Licensing Service be installed.

Note:The System Info page in the lmadmin user interface does not show these hostids specific to the Amazon EC2 environment. To obtain these hostids, you must use the methods described the following table

Retrieving and Specifying Hostids

Hostid Type

Method to Obtain ID

License File Syntax

Elastic IP (EIP) address (AMZN_EIP)

Use either method:

On the AMI instance containing the server, run the following command:

lmhostid -ptype AMZN -eip

Obtain the EIP from the Amazon infrastructure.

This lmhostid command actually returns the public IP address for the AMI instance, and this value might not always be the EIP address. Consider the following:

• If the AMI instance is associated with an EIP address, the EIP address is the public IP address. Consequently, lmhostid returns the EIP address.

• If the AMI instance has no EIP address associated with it, EC2 assigns a default public IP address, which is the value that lmhostid returns.

FlexNet Publisher strongly recommends obtaining the EIP address. To ensure lmhostid returns this value, associate the instance with an EIP address before running the command. If necessary, consult Amazon for help with this process.

Syntax:

AMZN_EIP=IPv4 address

Example:

SERVER this_host AMZN_EIP=184.72.45.35

AMI template ID (AMZN_AMI)

As software publisher, use either method:

On the AMI instance used for the VA, run the following command:

lmhostid -ptype AMZN -ami

Obtain the template ID from the Amazon infrastructure.

Syntax:

AMZN_AMI=AMI template ID

Example:

INCREMENT F1 demo...
HOSTID=AMZN_AMI=ami-6a807503...SIGN=xxx

VM_UUID (AMI instance IID)

Use either method:

On the AMI instance containing the license server, run the following command:

lmhostid -ptype VM -uuid

Obtain the instance ID from the Amazon infrastructure.

Syntax:

VM_UUID=universal unique dentifier for AMI Instance ID

Example:

HOSTID=VM_UUID=i-7d409db1

Elastic Network Interface (ENI)

On the AMI instance containing the license server, run the following command:

lmhostid -ether

Syntax:

lmhostid -ether

Example:

Host ID=""06007e2c60c7 06835b200fe7""

Note:ifconfig returns eth0 and eth1.

eth0(primary network interface)=06835b200fe7 eth1(Elastic Network Interface)=06007e2c60c7