2014年3月7日 星期五

如何使用指令查詢 matlab hostid ?

Platform How to find the host ID
Windows® (all) For standalone licenses, the host ID can be either the volume serial number of the C:\ drive (Option 1), or the MAC Address (Physical Address) of the first Ethernet adapter (Option 2).

For network licenses, the host ID can be the MAC Address (Physical Address) of the first Ethernet adapter (Option 2) or the IP Address of the first Ethernet adapter (Option 3).

Option 1: Volume Serial Number (Standalone licenses only)

To obtain the Volume Serial Number, open a Command Prompt window, and run the command:

vol c:
Use the serial number listed (ex. 1234-1234).

Option 2: MAC Address (Physical Address, Standalone or Network licenses)
To obtain the MAC Address, open a Command Prompt window, and run the command: getmac Use the first Physical Address listed (ex. 00-11-22-aa-bb-cc).

Option 3: IP Address (Network licenses only) To obtain the IP address, open a Command Prompt window, and run the command: ipconfig
Linux® For a Linux machine, the host ID is the MAC Address of the eth0 device (first Ethernet device). To obtain this value, run the following command in a Terminal window:

/sbin/ifconfig eth0

The host ID will be the value listed next to the tag "HWaddr".
Mac OS® X For a Mac OS X machine, the host ID is the MAC Address of the built in Ethernet device (en0). To obtain this value, use Terminal in /Applications/Utilities and run the command:

netstat -I en0

The host ID is listed in the first row of the output, under the "Address" column.