System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Looking for A command to do halt pkg, AND start pkg on another node?

 
SOLVED
Go to solution
Super Advisor

Looking for A command to do halt pkg, AND start pkg on another node?

I can cmhaltpkg on this node, and cmrunpkg on another node. But, is there one command,instead of two commands, to do these two actions, and to failover the pkg from one node to another?
none
6 REPLIES 6
Trusted Contributor
Solution

Re: Looking for A command to do halt pkg, AND start pkg on another node?

look at my last post - i have added a solution at the end

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=984553
hello
Honored Contributor

Re: Looking for A command to do halt pkg, AND start pkg on another node?

Hi,

I don't think you have one command for that in HP-UX , only in Sun I have seen the command.

Cheers...007
Honored Contributor

Re: Looking for A command to do halt pkg, AND start pkg on another node?

There is no single command. You hav eto do cmhaltpkg then cmrunpkg.
However, if you use teh GUI Serviceguard Manager, this will allow you to drag and drop the package from the node currently running the package onto the node you wish to run th epackage on, and will do all of the commands for you, INCLUDING cmmodpkg -e to re-enable package switching.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Honored Contributor

Re: Looking for A command to do halt pkg, AND start pkg on another node?

Hi Hanry Zhou,

There's no single command that can accomodate two commands (cmhaltpkg & cmrunpkg).

The workaround is to create a script that have both commands. So when you execute this script, the script will execute both commands. That's why this called a workaround.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Honored Contributor

Re: Looking for A command to do halt pkg, AND start pkg on another node?

cmhaltpkg ; cmrunpkg -n

string them together with a ; ?

Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Honored Contributor

Re: Looking for A command to do halt pkg, AND start pkg on another node?

Hi Hanry Zhou,

If you shutdown the node, usually the package will automatically halt and run on another node.

You can try to halt the node by cmhaltnode to find out whether the effect meet with your enquiry or not.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix