Operating System - HP-UX
1833324 Members
3152 Online
110051 Solutions
New Discussion

Re: Changing Hostname ?????

 
Tony Constantine
Frequent Advisor

Changing Hostname ?????

Hi,
We currently have an RX1600 running HPUX11.23 and are having issues with changing the hostname of this machine.

We have done the obvious /etc/hosts netconf we have also used set_parms hostname but whenever we reboot the box it reverts back to its old name.

having checked through which files contain the old name we find it is set in the following:
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

Changed the contents of these files and re-ran set_parms but whenever we boot the machine it reverts back to the old name nad the files above contain the old name also.

Has anyone got any idea why this would be occuring.

Thanks


7 REPLIES 7
Robert-Jan Goossens_1
Honored Contributor

Re: Changing Hostname ?????

Hi,

Check the file /etc/rc.config.d/netconf

change the hostname,also change the hostname in the /etc/hosts and reboot your server.

Regards,
Robert-Jan
John Palmer
Honored Contributor

Re: Changing Hostname ?????

Well the hostname is sourced from netconf which you've changed.

The only thing that I can think of is that there's a script somewhere in the startup environment that's running hostname .

You could try searching likely places for for example /usr...

find /usr -type f -exec grep -l {} \;

Regards,
John

Carlos Muñoz_1
Occasional Contributor

Re: Changing Hostname ?????

Hello. You can change the hostname with the following commandos: uname - S or set_parms.
bhavin asokan
Honored Contributor

Re: Changing Hostname ?????

bhavin asokan
Honored Contributor

Re: Changing Hostname ?????

hi,

the following link also.
check you are having any extra script (made by administrator) which is running at system startup.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=689442


regds,
Tony Constantine
Frequent Advisor

Re: Changing Hostname ?????

Thanks to all who replied, I found a copy of an old netconf in /etc/rc.config.d, once I moved that out of the way and reset the hostname with set_parms and rebooted it is working fine.
Tony Constantine
Frequent Advisor

Re: Changing Hostname ?????

Solution was to remove a backup copy of an old netconf file from /etc/rc.config.d