1824363 Members
3496 Online
109669 Solutions
New Discussion юеВ

Hostname

 
SOLVED
Go to solution

Hostname

I want to change the name to my server. I have added a new entry in the /etc/passwd file and I have keep the old one like an alias. But the name displayed for the SAM application is still the old. Must I add the new name to any other file or application?
3 REPLIES 3

Re: Hostname

Of course, I want to say /etc/hosts file, not /etc/passwd.
John Payne_2
Honored Contributor
Solution

Re: Hostname

You could run '/sbin/init.d/hostname '.

Or you could just change the file /etc/rc.config.d/netconf. There is a line there for hostname, but it would not take effect until the next reboot in that case.

I believe the command '/usr/bin/hostname ' will change the current running system's hostname, but not change it for the next reboot.

Hope it helps
John
Spoon!!!!
James R. Ferguson
Acclaimed Contributor

Re: Hostname

Hi Raul:

The easiest way (which will perform a reboot) is:

# /sbin/set_parms hostname

The script will interactively ask you for the new hostname and reboot.

Regards!

...JRF...