HP Serviceguard Developer's Toolbox Version B.12.00.00 For HP-UX and Linux

When the monitor function detects an application failure, it returns fail status that is a non-zero
number to HP Serviceguard, thereby enabling it to take appropriate action (failover, restart
and so on) based on the package configuration.
Attribute Definition File (toolbox.1)
The cmmakepkg command uses the toolbox.1 file to include the application specific
configuration variables into the package configuration file. The ADF also defines various
properties of the variables specified such as type, legal values, comments, and so on. When
the package configuration file is validated or applied using the cmcheckconf and
cmapplyconf command respectively, the values assigned to the application specific variables
are verified for conformity with the properties defined in the ADF file.
Figure 1 Toolbox architecture
Serviceguard Module
Definitions
Toolbox Module
Definitions
User-edited Package
Configuration File
Serviceguard Specific
Configuration and Logic
Application Specific
Configuration and Logic
Sources
Updates
Sources Sources
Calls Calls
Calls
Monitors
Start/Stop
Serviceguard
Package Config
Package Configuration
Component of Cluster
Configuration Database
(CDB)
Serviceguard
Package Manager
Toolbox Toolkit
Module Script
Application Specific
Start/Stop Scripts
Serviceguard Master
Control Script
Application
(e.g., MySQL)
As shown in Figure 1 (page 9), when the package configuration file is created including the
Toolbox module, edited, and applied, the configuration variables are updated in the cluster
configuration database (CDB). Serviceguard package manager sources these values from the
CDB which includes details of scripts to be executed in a sequence to bring up or bring down
the package. The sequence includes the execution of the tkit_module.sh script. After
sourcing, it calls the Serviceguard master control script to execute the sequence of the scripts.
The Serviceguard master control script executes each script in the sequence passed by the
Serviceguard master control script by passing start, stop, or validate arguments.
Modular Toolkit framework 9