1833714 Members
2285 Online
110063 Solutions
New Discussion

Error change hostname

 
Jose_129
Regular Advisor

Error change hostname

Initial state:
hostname: hp-rep
IP: 172.17.2.17
Use set_parms ip_address to change the IP and using set_parms hostname to change the hostname. hostname: hp-lito,IP: 172.17.2.8 After this the equipment shutdown for that it accepts the changes.
Final state

more/etc/hosts
172.17.2.8 hp-lito
But when I execute uname -u presents hp-rep
# uname -a
hp-rep
# ifconfig lan0
172.17.2.8

Regards
Change password in way single user, beginning in multiuser way console
7 REPLIES 7
James A. Donovan
Honored Contributor

Re: Error change hostname

Check your /etc/rc.config.d/netconf file. Is there a NODENAME variable? If so, it's probably still set to the old name.
Remember, wherever you go, there you are...
Jose_129
Regular Advisor

Re: Error change hostname

As I see the variable in the file?

But because it does not make the changes?
Change password in way single user, beginning in multiuser way console
James A. Donovan
Honored Contributor

Re: Error change hostname

take a look at this thread for a complete explanation of the difference between a nodename and a hostname.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=248155
Remember, wherever you go, there you are...
Jose_129
Regular Advisor

Re: Error change hostname

Any news
Change password in way single user, beginning in multiuser way console
Steven E. Protter
Exalted Contributor

Re: Error change hostname

I don't use nodename on my system. If you do, this may be one of the things that set_parms or sam can't handle.

So vi /etc/rc.config.d/netconf

look for nodename
look for hostname

Make sure they are the same and less than 8 characters.

Save the file.

Restart your system. There is however adequate input prior to this post for this issue to be resolved. The thread referenced explains nodename very well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Steele_2
Honored Contributor

Re: Error change hostname

Also note the time stamp of /etc/hosts before and after reboot. Make sure its updating and not complaining missing files from : /sbin/ch_hostname.d

Also check /etc/rc.config.d/netconf. This is where hostname resides.
Support Fatherhood - Stop Family Law
Jose_129
Regular Advisor

Re: Error change hostname

The problem because backup files netconf are placed in the directory /etc/rc.config.d/. It is recommended not to place backup files is that directory.

Regards,

Jose
Change password in way single user, beginning in multiuser way console