HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

Running packages
To start a package:
# cmrunpkg <package_name>
Maintaining packages
HP Serviceguard normally monitors critical processes, but there might be situations when a planned
maintenance task (for example, changing the configuration) is required that affects those monitored
processes. The maintenance flag can be used to signal to Serviceguard that it must not failover the
instance to an adoptive node.
For easy comprehension, the following naming conventions are used in this section:
Package name: pkgsm_pkg1
Package directory: ${SGCONF}/pkgsm_pkg1
Shared configuration on a file system: /pkgSM
To set a Sendmail toolkit package to the maintenance mode:
1. Enable the maintenance for the package during package creation.
To enable the maintenance mode feature, set the MAINTENANCE_FLAG to yes in the package
configuration file or in the Sendmail toolkit configuration file, and then apply the configuration
by running the cmapplyconf command.
2. Create an empty file to pause monitoring script.
${SGCONF}/pkgsm_pkg1/sendmail.debug as shown below:
touch ${SGCONF}/pkgsm_pkg1/sendmail.debug
The toolkit monitoring script stops monitoring the Sendmail daemons running for the instance
configured for the package. The following message is logged in the package control script:
Sendmail toolkit pausing, monitoring, and entering maintenance mode.
3. Perform the maintenance actions.
For example, you can change the configuration of the Sendmail server instance, or install a
Sendmail patch.
4. To start monitoring application processes, run:
# rm -f ${SGCONF}/pkgpg_pkg1/sendmail.debug
The following message is recorded in the Serviceguard package control script log:
Starting Sendmail toolkit monitoring again after maintenance.
NOTE: Ensure that the application is up and running before removing the sendmail.debug
file.
Halting packages
To halt a package:
# cmhaltpkg <package_name>
Deleting packages
To delete a package from the cluster:
# cmdeleteconf -p <package_name>
This command prompts for a verification, before deleting the files, unless you use the -f option.
Using Sendmail toolkit 51