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

Lowell Heddings Lowell Heddings
Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people.
Read Full Bio »