Catatan kerja

Database beberapa permasalahan yang terjadi di tempat kerja

Change Hostid Solaris 8 October 29, 2008

Filed under: Unix — aderahman @ 4:59 am

You may need to change the hostid for licensing issues
when moving a software from one machine to another one.

Here is the procedure:

1. Download hid_solaris2 binary from
If you want to compile the code yourself you can download it from

2. Save the original hostid to somewhere. (just for safety)

# hostid >/etc/hostid_orig

3. set permission of hid_solaris2 as 755
# chmod 755 /var/hid_solaris2
(I assume that hid_solaris2 is under /var/ directory)

4.To set new hostid (i.e 84abe39d) issue the following command

# /var/hid_solaris2 84abe39d |sh

physmem 2e694
hw_serial: 0×32323130 = 0×32323235
hw_serial+4: 0×39313931 = 0×38353734
hw_serial+8: 0×36390000 = 0×33370000

5. new hostid will be active until next reboot. To enable it again at startup add this command to
solaris startup scripts.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s