Windows
Option 1: Volume Serial Number
執行命令提示字元,執行下列指令
C:\> vol c:
會出現"DISK_SERIAL_NUM=1234-abcd"的字串,Host ID就是"1234abcd" (將dash "-" 去掉)
Option 2: Mac Address (Physical Address)
執行命令提示字元,執行下列指令
C:\> getmac
會列出本機上所有的網路卡實體位址
或者執行
C:\> ipconfig /all
"Physical Address"所列的就是網路卡實體位址 (例如:001122aabbcc,將dash去掉)
Solaris
Option 1: Mac Address
執行下列指令
# /usr/sbin/arp `hostname`
出現 00:11:22:aa:bb:cc 的網路卡實體位址 (記得要將colon ":"去掉)
Option 2: CPU Hostid
執行下列指令
# /bin/hostid
Linux
主要是以eth0這個網卡的MAC Address為主
執行下列指令
# /sbin/ifconfig eth0
"HWaddr"所列的就是網路卡實體位址 (例如:001122aabbcc,將colon去掉)
補充說明
如果有安裝FLEXnet tools,可以執行下列指令,查看在此平台上的hostid
#
lmutil lmhostid
參考資料來源:
http://www.mathworks.com/support/solutions/en/data/1-171PI/index.html
沒有留言:
張貼留言