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.
在Solaris上,主机标识类似于主机名。 要确定Solaris框的hostid,可以使用以下两个选项。
sysdef -h
sysdef -h
The sysdef utility gives you system information, including hardware and system information.
sysdef实用程序为您提供系统信息,包括硬件和系统信息。
Example:
例:
# sysdef -h** Hostid* 3adf6e7c
#sysdef -h ** Hostid * 3adf6e7c
hostid
主机名
The hostid utility is a shortcut command to quickly get the hostid.
hostid实用程序是用于快速获取hostid的快捷命令。
Example:
例:
# hostid** Hostid* 3adf6e7c
#hostid ** Hostid * 3adf6e7c
翻译自: https://www.howtogeek.com/howto/solaris/get-the-host-id-number-on-solaris/