Programmer's Blog

Programmer's reference

Monthly Archives: June 2015

[Solaris] Changing hostid

1. Change your desired hostId into decimal, then to ASCII characters code

2. add the following line to /etc/rc2.d/S20syssetup

echo "hw_serial/v 32 32 33 31 34 36 32 30 36 32 00 00" | mdb -kw

where there should be 12 blocks with padding trailing 00s

3. run ./S20syssetup

4. to back to original, just revert the steps