1834814 Members
2515 Online
110070 Solutions
New Discussion

Re: Change Server Name

 
Sylvie Vezina
Occasional Advisor

Change Server Name

How can I change the server name, which commands should I use?
The best day is today
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: Change Server Name

Hi,

use "set_parms hostname"

this will prompt you for the new name for the server.

hope this helps.

thanks
Rob Smith
Respected Contributor

Re: Change Server Name

Hi, /sbin/set_parms hostname. This will require a reboot. Hope this helps.

Rob

Learn the rules so you can break them properly.
Sachin Patel
Honored Contributor

Re: Change Server Name

Hi Sylvie,
#set_parms hostname

Check recent thread.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4f74abe92dabd5118ff10090279cd0f9,00.html

Sachin



Is photography a hobby or another way to spend $
linuxfan
Honored Contributor

Re: Change Server Name

Hi Sylvie,

For a temporary change you can do "uname -S newname" or "hostname newname".

For a permanent change, you could modify the /etc/hosts and HOSTNAME variable in /etc/rc.config.d/netconf

If you don't want to modify the files, the easier way is to run "set_parms hostname" which will change the name (will need a reboot)

If you are using DNS or NIS, you may have to update the name for this host there as well.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates