Linux下用hostid命令查找到的值與Solaris用hostid命令查找到的不是一個概念
Linux下用hostid命令查找到的值是取hostname對應的ip地址。然後把ip地址轉換成hex,然後將位置2143位置顛倒後的結果
這個對應記錄在/etc/hosts文件裏,比如我的hostname:ITMS-server對應的ip就是127.0.0.1.那我的hostid就是007f0100
.
而Linux下與Solaris用hostid命令查找到的hostid 爲同一概念的值應按下表獲取
因此IMTS-server上的hostid應該爲D485646979EE
請用這個申請license
Ps:最好還是和老外確定下Linux下怎麼獲取license要用的hostid
The type of host ID returned by lmhostid utility will depend on theplatform. The following table lists the host ID types used for each platformalong 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=") |