Operating System - HP-UX
1832279 Members
2202 Online
110041 Solutions
New Discussion

Unable to change the host name

 
SOLVED
Go to solution
Binu_5
Regular Advisor

Unable to change the host name

Hi

I could not change the hostanme in hpux 11.. The problem if I change the systemname it get resetted after the reboot ...

Can anybody help me

Thanks
Binu
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: Unable to change the host name

Run "/sbin/set_parms hostname" to change, then let it reboot and all should be well.


Pete

Pete
Muthukumar_5
Honored Contributor

Re: Unable to change the host name

hostname will change hostname upto that login only.

Go to /etc/rc.config.d/netconf file and change HOSTNAME="" save the changes.

Or

/sbin/set_parms hostname

will change hostname.

hth.
Easy to suggest when don't know about the problem!
Steven E. Protter
Exalted Contributor

Re: Unable to change the host name

/etc/rc.config.d/netconf

Change it there and boot and it will not get changed back.

Exception: You system could have some custom script that copies the netconf data from a central repository. Your permissions might not permit you to change that file.

Check crontab -l and permissions on netconf.

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
Borislav Perkov
Respected Contributor

Re: Unable to change the host name

Hi Binu,
You can change it with command:

set_parms hostanme

and reboot after.

Also be awared that some applications depends on the hostname like Oracle Financials etc.

Regards,
Borislav
Ranjith_5
Honored Contributor

Re: Unable to change the host name

Hi Binu,

run " /sbin/set_parms hostname " to change the hostname to make permanent.


#set_parms ? will give you the other options.


Alternate option is to edit /etc/rc.config.d/netconf and change the name which is presently there towards HOSTNAME="xxxx" to the desired one.


Regards,
Syam


Cem Tugrul
Esteemed Contributor

Re: Unable to change the host name

Binu,

use set_parms command
OR
edit /etc/rc.config.d/netconf and modify
HOSTNAME=
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Devender Khatana
Honored Contributor

Re: Unable to change the host name

Hi,

1. set_parms hostname

2. Update /etc/rc.config.d/netconf with new hostname

3. Update /etc/hosts file with new hostname

Reboot the server.

HTH,
Devender
Impossible itself mentions "I m possible"
Borislav Perkov
Respected Contributor

Re: Unable to change the host name

Check if the system is DHCP client it may take the Hostname from DHCP server.
Binu_5
Regular Advisor

Re: Unable to change the host name

Hi


I there was one more file in /etc/rc.config.d/org_neconf which was referrring diffrent name ..I have modified the name and it started working

Thanks
Binu