获取机器的hostid准备生成license

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:

PlatformHost ID TypeNative OS Command
Windows(*1)Ethernet Addressipconfig /all (use "Physical Address" value)
Solaris32-bit Hostidhostid
LinuxEthernet Address/sbin/ifconfig eth0 (use "HWaddr" value)
Mac OS XEthernet Address/sbin/ifconfig eth0 (use "ether" value)
Tru-UNIX (Digital)Ethernet Addressnetstat -i
IBM AIX32-bit Hostiduname -m (returns 000276513100), then remove both the first and the last two digits, and use the remaining eight digits
SGI32-bit Hostid/etc/sysinfo -s (convert to hex, or prefix #)
HP-UX PA-RISC32-bit Hostiduname -i (convert to hex, or prepend with #)
HP-UX ItaniumMachine IDgetconf 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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值