Operating System - HP-UX
1753814 Members
7748 Online
108805 Solutions
New Discussion юеВ

Re: changing server name and IP addess on hp-ux 11.23

 
Bill Neidigh
Occasional Contributor

changing server name and IP addess on hp-ux 11.23

I have a small rx2620 Itanium server.

actually there are two questions:
1) change the name and ip address of the server.
2) change the ip address of the mc.

can I change these addresses before I bring the server down, so I can move the server and bring it up at the new location?
what steps will I need to be concerned about?
9 REPLIES 9
Ivan Krastev
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Use set_parms to do that - http://docs.hp.com/en/B2355-60105/set_parms.1M.html


regards,
ivan
Uday_S_Ankolekar
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Use Set_parms command to change IP and hostname
change it to new value and reboot.

MP console : go to CM (Command menu) and then choose LC option , Change IP address of MP console and reset console by choosing XD option.

While changing IP address also take look at your Subnet mask and Gateway address

-USA.
Good Luck..
Norman Dignard
Regular Advisor

Re: changing server name and IP addess on hp-ux 11.23

I've gone through a bit of this and most posts I've seen on the list say basically either run set_parms or edit your hosts and netconf file. This fine if you got no apps config'd/installed. Allot of the uinstalled apps will embed the host name in various files. You can see this by doing a grep for your host on all files on the system.

After my host rename had to manually edit
- /etc/mail/sendmail.cw
- /opt/hpws/ ... various apache, tomcat and webmin conf and html files
- ssh_host_xxx files (still rationalizing this)
- various ignite files
- /var/opt/swm/ssl.cnf - (still checking this)

In short renaming/IP'ing a box is simple. Correcting all various apps that embeded the hostname inot it's files are a pain.

That's my experience. Perhaps someone else can shed some light on this.

Ganesan R
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Hi,

There are few ways you can change the ip and hostname.

One is by using the below commands
#set_params hostname
#set_params ip_address

second one is by manually editing /etc/rc.config.d/netconf file

Third one is by using SAM. If you use sam it will automatically update netconf file for you.

Other than this changes related to operating system, you have to take care of application changes wherever hostname/ip required as Norman mentioned.
Best wishes,

Ganesh.
sujit kumar singh
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Hi

do have a talk with the database and/or application teams to take into account this IP address and the hostname change and ask them to make the corresponding modifications in the Database and/or Application side also.

change the IP address of mc ... what is mc can you tell more about that?

Regards
sujit
Johnson Punniyalingam
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Hi Willam,

Below command are used for changing hostname and IP without rebooting

#set_params hostname
#set_params ip_address


using SAM. will help you , IF you are not comfortable in edting the /etc/rc.config.d/netconf

Hence you are going to Bring down the Server down

Before Shutting down,
step1:- Have you heard of the nickle.script
run the script it will help collect some very usefull Infomartion, prior to moveing the server to new location,

Thanks,
johnson
Problems are common to all, but attitude makes the difference
Aneesh Mohan
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Hi William ,

I belive you can change and update the hostname by below procedure with out rebooting the box.
Note :- IF YOU HAVE ENOUGH DOWNTIME WINDOW AND THIS IS NOT A PRODUCTION BOX THEN PLEASE FOLLOW THE ABOVE EXPERTS SUGGESTIONS.


Changing HOSTNAME

a) hostname newhostname

b) uname -S newhostname

c) edit /etc/rc.config.d/netconf

change the below hostname string on line no 16

HOSTNAME="newhostname"

d) update /etc/hosts

e) /sbin/init.d/hostname start



Changing the IP address :-
Login through the MP console and make the changes .


Thanks,
Aneesh
Avinash20
Honored Contributor

Re: changing server name and IP addess on hp-ux 11.23

Halt the server
Move the server to the new location
Start the server
# set_parms hostname
# set_parms ip_address

Edit hostname and IP address in /etc/hosts

If in your application script, if we have embedded hostname or IP address, then please change that
You could get help from application team for the same incase you have host/IP entry.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Bill Neidigh
Occasional Contributor

Re: changing server name and IP addess on hp-ux 11.23

this is what worked for me:
set_parms hostname
and
set_parms ip_address
but I did not see how to reset the gateway or netmask, so I edited the /etc/rc.config.d/netconf file.
also did edit the /etc/hosts file.
systems did require rebooting to take effect.
Thanks for the assistance.