Operating System - HP-UX
1824971 Members
3970 Online
109678 Solutions
New Discussion юеВ

How to change the hostname on HP-UX

 
SOLVED
Go to solution
panks
Regular Advisor

How to change the hostname on HP-UX

Hi,
I have HPUX 11.23 installed in my machine, now due to some requirement I need to change the hostname. What is the best option to change the hostname which will change the hostname in all the required files.

Thanks
11 REPLIES 11
Ivan Krastev
Honored Contributor
Solution

Re: How to change the hostname on HP-UX

Use:

# set_parms hostname


here is more info - http://docs.hp.com/en/B2355-60105/set_parms.1M.html

regards,
ivan
tkc
Esteemed Contributor

Re: How to change the hostname on HP-UX

you can edit the file /etc/rc.config.d/netconf, and on next reboot the hostname will be changed.
SKR_1
Trusted Contributor

Re: How to change the hostname on HP-UX

Make the entry in /etc/hosts and /etc/rc.config.d/netconf files.
&
Take reboot

Thanks

SKR
Aneesh Mohan
Honored Contributor

Re: How to change the hostname on HP-UX

Hi,

Without Reboot
=============

#hostname "newname"
#uname -S "newname"
#update /etc/hosts and /etc/rc.config.d/netconf


Aneesh
Fabio Ettore
Honored Contributor

Re: How to change the hostname on HP-UX

Hi,

set_parms hostname

will do that, it is the best way to change the hostname smoothly. It requires a reboot.

Best regards,
Fabio
WISH? IMPROVEMENT!
Aneesh Mohan
Honored Contributor

Re: How to change the hostname on HP-UX

Yes , I do agree with Fabio.

Aneesh
Steven E. Protter
Exalted Contributor

Re: How to change the hostname on HP-UX

Shalom,

Note that without special software the hostname of the system can not exceed 8 characters.

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
Suraj K Sankari
Honored Contributor

Re: How to change the hostname on HP-UX

Hi,
For temperiory you can use

#hostname newhostname ( no reboot required)
once the machine is reboot old hostname will be there.

for permanent 2 best way is there
1.set_param hostname (reboot required)
2.sam (reboot required)

Suraj
Trng
Super Advisor

Re: How to change the hostname on HP-UX

Hi,

use sam for changing hostname .which wont trouble you more.

regards
skr
administrator
prasadb
Super Advisor

Re: How to change the hostname on HP-UX

hi panks,
forgot to assign points ?
Also, check your profile..
" I have assigned points to 61 of 182 responses to my questions."

take some time and assign points to all who have given their precious time to resolve your problem. please appreciate their efforts..


panks
Regular Advisor

Re: How to change the hostname on HP-UX

I found the solution