How-To Geek
Get the Host ID Number on Solaris
On Solaris, the hostid is similar to the hostname. To determine the hostid of a Solaris box, there are a couple of options to follow.
sysdef -h
The sysdef utility gives you system information, including hardware and system information.
Example:
# sysdef -h
*
* Hostid
*
3adf6e7c
hostid
The hostid utility is a shortcut command to quickly get the hostid.
Example:
# hostid
*
* Hostid
*
3adf6e7c
Got Feedback? Join the discussion at discuss.howtogeek.com
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 12/1/06



