Serviceguard Toolkits for Contrib User Guide Version A.12.00.00
8 Managing packages
You can manage packages by running, maintaining, halting, and deleting them.
Running packages
To start a package use the following command:
# cmrunpkg <package_name>
Enabling AUTORUN Parameter
To enable the AUTORUN parameter, run:
# cmmodpkg –e <package_name>
Enabling Package Switching
To enable package switching, run:
# cmmodpkg –e -n node-1, -n node-2 ... -n node-n <package_name>
Maintaining packages
When a Serviceguard package is in maintenance mode, it ensures the package will not failover
to an alternate node due to any failure in the application that is configured in the package.
To perform maintenance:
1. Enable the maintenance mode for the package using the cmmodpkg command.
# cmmodpkg -m on <package_name>
2. Perform the maintenance actions.
For example, you can change the configuration of the application instance or install an
application patch.
NOTE: You can ignore the errors or warnings in the package log file when the package is
set to maintenance mode.
3. Disable the maintenance mode for the package using the cmmodpkg command.
# cmmodpkg -m off <package_name>
NOTE: Ensure that an application instance is up and running before disabling the
maintenance mode.
Halting packages
To halt a package:
# cmhaltpkg <package_name>
Deleting packages
To delete a package from the cluster:
# cmdeleteconf -p <package_name>
Running packages 35