Operating System - HP-UX
1838648 Members
2888 Online
110128 Solutions
New Discussion

Changing IP and hostnames between HP systems

 
SOLVED
Go to solution
Gregory Locke
Frequent Advisor

Changing IP and hostnames between HP systems

Hi all:

We will be changing the name of our new rx6600 system to that of our rp4440 system this weekend. The reason is so that the phone system IVR and the bulk of the user scripts will work without a hitch. Yes, I know they are different platforms, PA vs. Itanium, but any compiled programs will be recompiled after the change to reflect the platform.

What is the best way to change the IP and system name?
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Changing IP and hostnames between HP systems

The "set_parms ip_address" and "set_parms hostname" commands will take care of setting the values everywhere that matter.

Man set_parms for details.
If it ain't broke, I can fix that.
Gregory Locke
Frequent Advisor

Re: Changing IP and hostnames between HP systems

Thanks, Clay. I knew it was something simple.
Mike Shilladay
Esteemed Contributor

Re: Changing IP and hostnames between HP systems

Hi Gregory,

You can do it the easy way:

/sbin/set_parms ip_address

Which will prompt you for the new settings.

Or the harder way, by manually amending the files to reflect the new ip (and/or name):

/etc/hosts
/ete/rc.config.d/netconf
/etc/mail/sendmail.cw (server name only)

Hope that helps,

Mike.
A. Clay Stephenson
Acclaimed Contributor

Re: Changing IP and hostnames between HP systems

I should add one cavaet. If the hostname/ip_address tuples change then you need to update your DNS/NIS/NIS+ data to reflect that change but as long as hostname "mickey" still corresponds to "10.1.1.1" eventhough mickey is now an Itanium box then set_parms will do everything necessary.
If it ain't broke, I can fix that.