Operating System - HP-UX
1836451 Members
2441 Online
110100 Solutions
New Discussion

change the name of server

 
SOLVED
Go to solution
Mousa55
Super Advisor

change the name of server

Hi
i want to change the name of my server from RUXAPP02 to RUXDB03, And the change everything from hostname and other
So as not to become any other influences
thanks
8 REPLIES 8
Nido
Trusted Contributor

Re: change the name of server

Use #set_parms ,it will change the hostname, changes will take effect in next reboot.

Thanks,
" Let Villagers Be Happy!! "
Jeeshan
Honored Contributor
Solution

Re: change the name of server

before changing make sure, there should be no dependency related to hostname. e.g. DNS, name resolution, MTA, application, database etc.

otherwise there may be severe problem you must face.
a warrior never quits
Rasheed Tamton
Honored Contributor

Re: change the name of server

Hi,
Type same as below:
set_parms hostname

It will bring an interactive command system menu. If you are set up x, then it will bring GUI.

Also, check these files to verify everything alright after you change the hostname
/etc/rc.config.d/netconf
/etc/rc.config.d/namesvrs
/etc/resolv.conf

hostname newhostname will also change the hostname but the set_parms is to use.

Rgds.



Safarali
Valued Contributor

Re: change the name of server

Nejad
before making any changes make sure your server is not connected to any management server or backup server
make sure you have the backup of the following files
/etc/rc.config.d/netconf,
~root/.rhosts,
/etc/hosts.equiv,
/etc/fstab,
/etc/exports,
/etc/hosts,
/var/adm/inetd.sec, and various swacl(8) files if they exist

Regards
Safar
Yogeeraj_1
Honored Contributor

Re: change the name of server

>So as not to become any other influences
Change of both hostname and IP address would be the most wise action in this case. Do not forget to update your DNS,etc

good luck!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Sajjad Sahir
Honored Contributor

Re: change the name of server

Dear Nejad

command is set_parms

please see the man set_parms


thanks and regards

Sajjad Sahir
Asif Sharif
Honored Contributor

Re: change the name of server

Dear Nejad,

Before Changing the hostname make sure that it will not impect on any application

uname -S RUXDB03

Modify the hostname in the following files

/etc/hosts
/etc/rc.config.d/netconf

restart the network service.

#/sbin/init.d/net stop
#/sbin/init.d/net start

Regards,
Asif Sharif
Regards,
Asif Sharif
Sp4admin
Trusted Contributor

Re: change the name of server

Looks like the form has answerd your question. I would make the DBAs check and modify any database or scripts etc, pertaining to the old hostname to the new hostanme.

sp,