Operating System - HP-UX
1753354 Members
5191 Online
108792 Solutions
New Discussion

Unable to change HP UNIX server host name.. It looks like strange issue.

 
SOLVED
Go to solution
arunaphcl
Advisor

Unable to change HP UNIX server host name.. It looks like strange issue.

Unable to change HP UNIX server host name.. It looks like strange issue.

 

Tried  the below,

 

1: Modified the hostname in netconf file.

 

2: changed hostname using 'set_parms' command.

 

 

 

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Unable to change HP UNIX server host name.. It looks like strange issue.

So what is the problem?

 

You told us the steps you have done, but not what the results were, nor the results you expected.

arunaphcl
Advisor

Re: Unable to change HP UNIX server host name.. It looks like strange issue.

Host name is not gettting reflected after changing it . it is showing the same hostname which was set earlier.

Patrick Wallek
Honored Contributor
Solution

Re: Unable to change HP UNIX server host name.. It looks like strange issue.

The first thing to check is to see if there are any files in /etc/rc.config.d that are backups of the netconf file (netconf.bak, netconf.save, etc.).

 

Do an 'll /etc/rc.config.d/netconf*'.  If more than 1 file shows up in the list then that is likely your problem.  Move all of the files except netconf itself to another directory, verify that the hostname has been changed in the remaining netconf file,  and then reboot your system again.

 

It is not a good practice to keep backup copies of file in the /etc/rc.config.d directory as they can cause problems with your system config.  

Eric Antunes
Honored Contributor

Re: Unable to change HP UNIX server host name.. It looks like strange issue.

You should read hostname man pages carefully, namelly:

"...If the name_of_host argument is specified, the resulting host name change lasts only until the system is rebooted.  To change the host name PERMANENTLY, run the special initialization script /sbin/set_parms"

 

Eric

Each and every day is a good day to learn.