Operating System - HP-UX
1826397 Members
3705 Online
109692 Solutions
New Discussion

HOW to change IP of a Package

 
devarshi
Occasional Advisor

HOW to change IP of a Package

I already have a pkg(pkg1) configured with IP (192.168.1.37)which is up and running fine, now i want to have a similar pkg(pkg2) as that of the first pkg with the same IP(192.168.1.37) address on the same subnet, BUT the second pkg is not online and whenever I feel i sud be able to halt the pkg1 and start the pkg2, The question is whether I will be able to configure such a pkg(pkg2) with the same ip (192.168.1.37) or not?
Learning is a continious process .......which is absolutely necessary for development.
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: HOW to change IP of a Package

You always want to stop pkg1 in order to start pkg2? You never want to run both at the same time?
I can't imagine where should be the sense in doing this ... please explain.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: HOW to change IP of a Package

Shalom,

You change the package control script in Serviceguard (if that is indeed what we are talking about).

Then you can do the standard cmcheckconf/cmapplyconf commands and the package should change while running.

This will likely disconnect current users of the package so you might want to schedule some idle time of at least users of this package.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
melvyn burnard
Honored Contributor

Re: HOW to change IP of a Package

Well I do not understand why you would want this, but as long as you have the procedures in place to make sure at MOST only of the packages is running, then yes you can do this.
BUT be warned you could end up with issues IF you managed to get both packages running at the same time
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
devarshi
Occasional Advisor

Re: HOW to change IP of a Package

Thanks all for your reply,
So you ppl think that it is possible to configure pkg2 with the same IP as that of the pkg1, but as the pkg1 still on-line so wil I be able to assign the same IP to the pkg2 without taking it online, is that is possible? and as long as the pkg2 is offline can there be issue of functionality w.r.t pkg1, the basic idea of doing all this is pkg1 and pkg2 are same only that we are planning to shift pkg1 physically from one place to another.
Learning is a continious process .......which is absolutely necessary for development.