1833779 Members
2538 Online
110063 Solutions
New Discussion

Re: Rename Server

 
Sylvie Vezina
Occasional Advisor

Rename Server

Can I change the server's name without reinstall the OS. The model's server is L1000 with Unix 11.0. Thanks
The best day is today
7 REPLIES 7
Edward Alfert_2
Respected Contributor

Re: Rename Server

set_parms hostname

it will then ask you to enter the name
"Do what you love and you will never work a day in your life." - Confucius
Santosh Nair_1
Honored Contributor

Re: Rename Server

There are a couple of ways to do this...you can use /etc/set_parms or you can update the /etc/hosts files, do a uname -S , hostname and update the /etc/rc.config.d/netconf file. The set_parms reboots your system but the manual edit does not require a reboot...but a reboot is probably recommended since you'll have to restart many of the services for them to "know" the new hostname.

-Santosh
Life is what's happening while you're busy making other plans
linuxfan
Honored Contributor

Re: Rename Server

Hi,


Yes the easiest way is to use "/sbin/set_parms hostname". This will change the hostname in all the necessary files, but will need a reboot.

man set_parms for more information.

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Bill McNAMARA_1
Honored Contributor

Re: Rename Server

set_parms will do the trick, but just watch out for DNS servers and nfs exports etc...

Later,
Bill
It works for me (tm)
CHRIS_ANORUO
Honored Contributor

Re: Rename Server

You can do that easily. Use the set_parms command and also do read the online manual on set_parms.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
John Bolene
Honored Contributor

Re: Rename Server

As others have said, change the name locally.

Also you will need to change the name in any DNS servers that serve its name globally.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Lalo_Weng
Advisor

Re: Rename Server

Try this commands:
1) modify the hostname in /etc/hosts and /etc/rc.config.d/netconf
2) export hostname=new name
3) execute: /sbin/init.d/net start
4) execute: /sbin/init.d/net stop

Hope it helps
Keep finding is the way.