获取机器的hostid准备生成license

  • Post author:
  • Post category:其他


What is my Host ID?

Host IDs are unique identifiers for a particular machine. If you are installing a SySAM Sub-capacity-enabled product and are planning to use SySAM Sub-capacity to license a partition, or resource-set, then you must use the

sysamcap

utility to enter the host ID for the machine, partition, or resource-set. See the Sybase Software Asset Management Users Guide for more information.

To find your host ID, you can run the lmhostid utility included in the lmutil administration tool or use the appropriate operating system command. lmutil is included in your product distribution, or can be downloaded from

http://www.globes.com/support/fnp_utilities_download.htm#unixdownload

.

To run lmhostid utility use the command:

> lmutil lmhostid

The type of host ID returned by lmhostid utility will depend on the platform. The following table lists the host ID types used for each platform along with the native OS command that can be used to obtain the host ID value:


Platform

Host ID Type

Native OS Command
Windows(*1) Ethernet Address ipconfig /all (use “Physical Address” value)
Solaris 32-bit Hostid hostid
Linux Ethernet Address /sbin/ifconfig eth0 (use “HWaddr” value)
Mac OS X Ethernet Address /sbin/ifconfig eth0 (use “ether” value)
Tru-UNIX (Digital) Ethernet Address netstat -i
IBM AIX 32-bit Hostid uname -m (returns 000276513100), then remove both the first and the last two digits, and use the remaining eight digits
SGI 32-bit Hostid /etc/sysinfo -s (convert to hex, or prefix #)
HP-UX PA-RISC 32-bit Hostid uname -i (convert to hex, or prepend with #)
HP-UX Itanium Machine ID getconf CS_PARTITION_IDENT (prefix with “ID_STRING=”)

(*1) For Windows platforms, if your machine does not have a network adapter an alternate Hostid of type Disk Serial Number is supported. To get this host id, use the “lmutil lmhostid -vsn”command or get the disk’s volume serial number by executing “DIR C:”, remove “-” from the value and prefix “DISK_SERIAL_NUM=” to the serial number to get the host id.

Each host ID type has valid formats that will be checked when generating a license. Make sure the value entered matches these valid formats.

Ethernet addresses are 12 character hex values consisting of digits 0 thru 9 and characters A thru F. They may be entered in any of the following formats:

  1. 12AB34CD56EF
  2. 12-AB-34-CD-56-EF
  3. 12:AB:34:CD:56:EF

Host Ids are 8 character hex values consisting of digits 0 thru 9 and characters A thru F. They may be entered in the following formats:

  1. 12AB34CD
  2. 12AB-34CD

Note: For some platforms, Host Ids can also be entered in decimal formats, in this case prefix the host id with a “#” sign. Example: #1039716963

Disk Serial Number is always entered with a “DISK_SERIAL_NUM=” prefix. For example: DISK_SERIAL_NUM=3e2e17fd

Machine ID string is always entered with an “ID_STRING=” prefix. For example: ID_STRING=9c766319-db72-d411-af62-0060b05e4c05

ps:本文转载于http://hi.baidu.com/hexiong/blog/item/678462d9d7d3c92011df9b06.html