1833259 Members
3407 Online
110051 Solutions
New Discussion

Re: Change IP & Hostname

 
SOLVED
Go to solution
Pepe Jimenez Muñoz
Frequent Advisor

Change IP & Hostname

Hi,
I have a rp7400 with HP-UX 11.11, and I need to change IP and hostname....

the best procedure to do it is SAM, /sbin/set_parms,....????

THANKS.

ppviso
14 REPLIES 14
Clemens van Everdingen
Honored Contributor

Re: Change IP & Hostname

Hi,

set_parms is the easiest way, although I have never had problems with this, I have seen in the forum some remarks that not all files are updated correctly.

Sam will do as well ! I never use it.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Scott Van Kalken
Esteemed Contributor

Re: Change IP & Hostname

I prefer /sbin/set_parms but only because I feel more comfortable on the command line.

Things to check afterwards:

software distributer still works.

apps (such as omniback) still work (i.e. apps tied to the hostname or IP address).

DCE endpoint still works (if you use it).

NTP (if it's authenticated).

machine knows its own hostname (may need to change /etc/hosts).

etc...

SDUX is the main one I check for, if that works, you can be pretty sure most other things will.

Omniback is another one to check for as well....

Scott.
T G Manikandan
Honored Contributor

Re: Change IP & Hostname

#set_parms ip_address
#set_parms hostname

Thanks
Ravi_8
Honored Contributor

Re: Change IP & Hostname

Hi,
Yes set_parms is the best way to do.
never give up
KapilRaj
Honored Contributor

Re: Change IP & Hostname

--change it in /etc/rc.config.d/netconf

-- Change it in /etc/hosts

Reboot the box OR
/usr/sbin/init.d/net stop
/usr/sbin/init.d/net start

This is my best way to accomplish it. 'cause set_parms or sam does not update hosts file at times , no idea Y ?.

kaps
Nothing is impossible
harry d brown jr
Honored Contributor
Solution

Re: Change IP & Hostname


I'm sorry, but I have to disagree with the use of set_parms.

I find vi to be about 100 times faster and safer than set_parms. Maybe it's because I can manuever in vi rather well. Isn't it just:

vi /etc/hosts /etc/rc.config.d/netconf

and maybe

vi /etc/resolv.conf /etc/nsswitch.conf

live free or die
harry
Live Free or Die
Clemens van Everdingen
Honored Contributor

Re: Change IP & Hostname

Hi,

Harry that's why this forum is great, for every question there are ton's of answers/possibilties.

You are absolutely right !!

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
harry d brown jr
Honored Contributor

Re: Change IP & Hostname

Clemens,

I just recently had to change six systems IP's, subnet masks, gateway, dns, ...

And the winner was "vi" I tried set_parms, but all it did was screw my /etc/rc.config.d/netconf file to hell. It works fine when you have one nic card, but when you have 9 lan ports it goes crazy.

And you are right, the forums is a great place to learn something new everyday!

live free or die
harry
Live Free or Die
Hamdy Al-Sebaey
Regular Advisor

Re: Change IP & Hostname

Pepe,

As you say set_parms is the easiest way;
#set_parms ip_address
#set_parms hostname
or
/etc/host &
/etc/rc.config.d/netconf.

Regards,
Hamdy
Thanks for sharing knowledge
Clemens van Everdingen
Honored Contributor

Re: Change IP & Hostname

Hi,

As all the answers are there the only thing we need to do is assign points.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Pepe Jimenez Muñoz
Frequent Advisor

Re: Change IP & Hostname

Don??t worry about POINTS.

This nigth I go to change IP and hostname, and I assign points.

THANKS.
ppviso
Yogeeraj_1
Honored Contributor

Re: Change IP & Hostname

hi,

For someone who is well-conversant with vi maybe files will be a better alternative.

Otherwise, it much easier to use set_parms and equally SAM.

I prefer to use SAM for most operations.

Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Anil C. Sedha
Trusted Contributor

Re: Change IP & Hostname

If you have to change the IP and hostname

Do this

set_parms hostname

finish off with the change.

Change your ip address by

vi /etc/rc.config.d/netconf

Scroll down to your ip address.

Replace the ip address with the new ipaddress. Are you sure that the subnet and gateway will still remain the same. If yes, then be sure to change them too.

You will have to reboot after this, as the hostname change won't be effected with the stopping & restarting of network services.

Regards,
Anil
If you need to learn, now is the best opportunity
Martin Johnson
Honored Contributor

Re: Change IP & Hostname

Be careful. Apps like Openview Operations (OVO/VPO/ITO/OpC or whatever it is called now) will not work properly. Deinstall the OVO Agent prior to making any changes. Reinstall after. If this is an OVO management server, check the docs on how to make the changes in OVO.

HTH
Marty