Change of Hostname

Dear All.
I will like to know beside the following command

"hostname hostname"

what other command that can change the hostname of the Unix.
Thanks.

if you change hostname by using the hostname command changes will be lost when machine is rebooted to change hostname without losing configuration edit the following files

/etc/nodename
/etc/hosts
/etc/hostname.hme0 ( if interface is hme card /etc/hostname.ce0 if interface ce card

hassan2, that response is very specific to SunOS. And even there you missed:
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

gelbvonn, this the problem with your question. We need to know the specific OS you are using.

oops.. sorry I missed the OS out.. I am working on HP-UX version 11.0
Thanks again for the quick response.

HP has a script to change the hostname. Run the command:
/etc/set_parms hostname
and follow the instructions. And "hostname" is a literal, not the intended hostname. Don't use "/etc/set_parms fred" if you want to set your hostname to fred.