Operating System - HP-UX
1756730 Members
2830 Online
108852 Solutions
New Discussion юеВ

Please suggest the steps i need to follow to change the hostname.

 
SOLVED
Go to solution
GnanaShekar
Regular Advisor

Please suggest the steps i need to follow to change the hostname.

Hi,

I have some HP-UX 11.23 servers whose hostname need to be changed.

Please suggest the steps i need to follow to change the hostname.

Thanks & Regards
-GnanaShekar-
6 REPLIES 6
RAC_1
Honored Contributor
Solution

Re: Please suggest the steps i need to follow to change the hostname.

/etc/set_parms hostname
There is no substitute to HARDWORK
jamesps
Regular Advisor

Re: Please suggest the steps i need to follow to change the hostname.

In vi /etc/rc.config.d/netconf
change this line: HOSTNAME="ignite2"

Then fix the name resolution, change it in /etc/hosts as well.

At last change it in your DNS/NIS server if you have one.

james
jamesps
Regular Advisor

Re: Please suggest the steps i need to follow to change the hostname.

The above HOSTNAME... was just an example that would be your existing hostname which you need to change.
GnanaShekar
Regular Advisor

Re: Please suggest the steps i need to follow to change the hostname.

Hi,

Is it necessary to reboot the server for changes to take affect.

Regards,
-GS
James George_1
Trusted Contributor

Re: Please suggest the steps i need to follow to change the hostname.

Hi

Use the # set_parms command to change the hostname. see man on set_parms.

The system has to be rebooted to have the full effect.

Rgds / James
forum is for techies .....heaven is for those who are born again !!
Ninad_1
Honored Contributor

Re: Please suggest the steps i need to follow to change the hostname.

GnanShekar,

I dont think you have to reboot the system if you are changing directly in the file /etc/rc.config/netconf and /etc/hosts
For set_parms , you need to reboot.

Regards,
Ninad