Operating System - HP-UX
1837533 Members
3629 Online
110117 Solutions
New Discussion

is cmrunkpg -e <pkg_name> an option?

 
SOLVED
Go to solution
Tony Williams
Regular Advisor

is cmrunkpg -e <pkg_name> an option?

I don't get to do a lot of MC/SG maintenance but I thought that you could combine the cmrunpkg and cmmodpkg -e into one command cmrunpkg -e . I can't find this option in any of the doco so I don't know if its possible. Does anyone know?

Thanks
4 REPLIES 4
Sundar_7
Honored Contributor
Solution

Re: is cmrunkpg -e <pkg_name> an option?

Tony,

No, it is not. Unfortunately, you will have to type in 2 different commands

# cmmodpkg -e

# cmrunpkg -v [-n nodename]

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Mel Burslan
Honored Contributor

Re: is cmrunkpg -e <pkg_name> an option?

If the package is down and disabled from running by the cluster manager, and the behavior of the package was set to auto-run, as soon as you clear the disablement of this package, it will try to start on the node it was set as the primary.

Although, I really would not suggest doing it as it most probably will come to haunt you in the middle of a maintenance one day, by starting a package that you did not intend to start at that time. Typing another command is not so bad of a trade-off.

My 2 cents..
________________________________
UNIX because I majored in cryptology...
Babu A
Frequent Advisor

Re: is cmrunkpg -e <pkg_name> an option?

Tony,

cmmodpkg - enable or disable switching attributes for a high availability package.

cmrunpkg - run a high availability package.

I could not see -e option with cmrunpkg command.

Example:
To start a package pkg1 in node1 and enable global switching.

# cmrunpkg -n node1 pkg1
# cmmodpkg -e pkg1

Hope it helps you.

Thanks,
Babu
Tony Williams
Regular Advisor

Re: is cmrunkpg -e <pkg_name> an option?

Thanks for all of the replies. The replies were accurate and correct.