System name change

All,I need to change a machine name from A203 to A204. Everything stays the same except for the hostname. What is the best way to do this?Thanks!
[166 byte] By [Kevin_Baumann] at [2007-11-26 8:14:30]
# 1

Actually, I got it.

I changed the following files:

/etc/hosts

/etc/nodename

/etc/hostname.xxx (network interface)

/etc/net/ticlts/hosts

/etc/net/ticots/hosts

/etc/net/ticotsord/hosts

/etc/inet/ipnodes

I found these by running find . -type f -print | xargs grep -i HOSTNAME, where HOSTNAME is the name of the machine.

Thanks for reading.

Kevin_Baumann at 2007-7-6 21:10:49 > top of Java-index,General,Talk to the Sysop...
# 2
/usr/sbin/sys-unconfig is a lot simpler...
timevans at 2007-7-6 21:10:49 > top of Java-index,General,Talk to the Sysop...
# 3
But doesn't sys-unconfig change more than the name of the machine?
Kevin_Baumann at 2007-7-6 21:10:49 > top of Java-index,General,Talk to the Sysop...
# 4

I don't like sys-unconfig -- too much manual intervention is needed.

You could simply write a script that'll go and change the entries in the files listed (above) and also do a vxdctl hostid <newname>(to change the veritas hostname configuration as well -- check the vxdctl manpages for more detail).

implicate_order at 2007-7-6 21:10:49 > top of Java-index,General,Talk to the Sysop...