Operating System - HP-UX
1833301 Members
2878 Online
110051 Solutions
New Discussion

How to change hostname without reboot?

 
natis
Frequent Contributor

How to change hostname without reboot?

How to change hostname without reboot?

I know only run set_parms hostname to change hostname but it need to reboot. Can anyone help me?
7 REPLIES 7
Luk Vandenbussche
Honored Contributor

Re: How to change hostname without reboot?

uname -S newname

modify the hostname in /etc/hosts
and /etc/rc.config.d/netconf
whiteknight
Honored Contributor

Re: How to change hostname without reboot?

Natis,

Simple way use SAM, i have tested, it is working without reboot.

1. SAM
networking and communications
network interface cards
actions
modify system name


WK

Problem never ends, you must know how to fix it
AwadheshPandey
Honored Contributor

Re: How to change hostname without reboot?

Rita C Workman
Honored Contributor

Re: How to change hostname without reboot?

Just a thought........

...remember that if you change a hostname, IF...
... you have other software already on that box - it may have the hostname integrated within. So changing your hostname can affect software and licensing.

Rgrds,
Rita
Timo Louhelainen
Occasional Advisor

Re: How to change hostname without reboot?

Hi,

Change hostname to new_hostname.

Edit hostname to new_hostname @
/etc/hosts
/etc/rc.config.d/netconf

Then start hostname again

/sbin/init.d/hostname start

And you are done.

WBR,

Timo
whiteknight
Honored Contributor

Re: How to change hostname without reboot?

Natis,

if the problem has resolved, please close the case, don't forget to assign points ya.

Have a good weekend
WK
Problem never ends, you must know how to fix it
Dennis Handly
Acclaimed Contributor

Re: How to change hostname without reboot?

Any reason you asked this same question last week?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1151870