Operating System - HP-UX
1834394 Members
1701 Online
110066 Solutions
New Discussion

Re: How to modify the Hostname!

 
q tang
Occasional Contributor

How to modify the Hostname!

First I have used Ignite-UX to make a bootable backup tape for the whole system!
Second I installation another machine use such tape at the booting stage and without interactive!
So to avoiding the conflict, I need to modify the Hostname and IP address for the second mechine! How can I do?
10 REPLIES 10
Ravi_8
Honored Contributor

Re: How to modify the Hostname!

Hi,

#set_parms ip
#set_parms hostanme
will do (ofcourse in the second machine)
never give up
Robert-Jan Goossens
Honored Contributor

Re: How to modify the Hostname!

Hi,

#set_parms ip
#set_parms hostanme

Will do great.

Robert-Jan.
kish_1
Valued Contributor

Re: How to modify the Hostname!

you can directly edit following file /etc/rc.config.d/netconf , but always suggest set_parms
share the power of the knowledge
Vicente Sanchez_3
Respected Contributor

Re: How to modify the Hostname!

Hi,

set_parms ip
set_parms hostname

regards, Vicente.
Pete Randall
Outstanding Contributor

Re: How to modify the Hostname!

For what it's worth, set_parms uses the syntax "set_parms ip_address" for changing the ip, not "set_parms ip".

Pete

Pete
Ravi_8
Honored Contributor

Re: How to modify the Hostname!

Hi, pete

#set_parms ip
#set_parms ip_address

both points to the same
never give up
Pete Randall
Outstanding Contributor

Re: How to modify the Hostname!

I guess I'm way too literal. Thanks for the tip.

Pete

Pete
Mark Blonde
Advisor

Re: How to modify the Hostname!

In my experience set_parms has caused problems when changing the hostname. Upon reboot, the /etc/rc.config.d/netconf file had been corrupted. Maybe I was just unlucky, but since then I've been modifying the necessary files where the hostname is referenced(/etc/hosts, /etc/rc.config/netconf, /var/adm/inetd.sec sendmail.cw files etc..) manually.

If you don't have what you want, want what you have.
rick jones
Honored Contributor

Re: How to modify the Hostname!

indeed, /sbin/set_parms hostname is the way to go, and has worked just fine for me on many occacions. particularly after someone has hand-edited, some, but not enough of the config files :) for exmaple, when swinstall will not work any longer...

another consideration, instead of using a recovery tape features of Ignite/UX, you might consider making a "golden image" instead and installing via that golden image - you then get the option of specifying system id info like name and IP just like it was a fresh install - just that now the fresh install is everything you've already installed on the system from which you have made the golden image.

another thing to check if you are using the recovery tape is that the interface config files in /etc/rc.config.d do not have hard-coded MAC addresses in them - duplicate MACs are just as bad (maybe worse) as duplicate IPs.
there is no rest for the wicked yet the virtuous have no pillows
Oleg Zieaev_1
Regular Advisor

Re: How to modify the Hostname!

Hello.

When you use ignite tape from system A on system B as a boot source, you have ability to specify new network information like IP, hostname etc.

Hope this helps.
0leg
Professionals will prevail ...