1824976 Members
3875 Online
109678 Solutions
New Discussion юеВ

cmmodpkg usage

 
Ganesh Balraman
Regular Advisor

cmmodpkg usage

Hi Admins!

When and which situation cmmodpkg commands should be used ?

Please give detailed explain with examples?

Thanks,
Ganesh
2 REPLIES 2
Jeeshan
Honored Contributor

Re: cmmodpkg usage

Hi

cmmodpkg is used to perform runtime administration of Serviceguard packages. In the first form, it performs two operations. It enables or disables the ability of a package to switch to another node upon failure of the package, and it enables or disables a particular node from running specific packages.

The second form of cmmodpkg is used to reset the service restart counter for service service_name contained in package package_name.

For more info go to man page

#man cmmodpkg
a warrior never quits
Rahul Rai_1
Frequent Advisor

Re: cmmodpkg usage

Hi Ganesh,

Enabled simply means that switching is allowed for that package on that node. Disabled means that switching is not allowed for that package on that node.

cmmodpkg have the ability to enable and disable ability of a package to switch to another node upon failuer of the pkg, so that while patching or any schedule activity is happening we can move the pkg from first node to second and disable to switch the pkg to the first one, so that once the activity got completed we can enable the switching or failover the pkg,

in case if we are not disabling the switching techneeque, and we shifted the pkg to the second node from the first one then, once the first node come-up after the activity pkg will auto matically try to get up on the first one,

cmmodpkg -d pkg1 /disable
cmmodpkg -e pkg1 /enable

Regards,
Rahul Rai.