Managing HP Serviceguard for Linux, Tenth Edition, September 2012

monitoring script fails or is halted, then all the other packages that are using this common
resource also fail.
See the recommendation from HP and an example under “Launching Monitoring Scripts
(page 341).
Generic resources can be of two types - Simple and Extended.
A given generic resource is considered to be a simple generic resource when the up
criteria parameter is not specified.
For a simple resource, the monitoring mechanism is based on the status of the
resource.
The status can be either UP, DOWN, or UNKNOWN.
The default status is UNKNOWN; UP and DOWN can be set using the
cmsetresource(1m) command.
A given generic resource is considered to be an extended generic resource when the
up criteria parameter is specified.
For an extended resource, the monitoring mechanism is based on the current value
of the resource.
The current value is matched with the generic_resource_up_criteria specified
for the resource in a package and this determines whether the generic resource
status is UP or DOWN.
The default current value is 0.
Valid values are positive integer values ranging from 1 to 2147483647.
NOTE: You can get or set the status/value of a simple/extended generic resource using
the cmgetresource(1m) and cmsetresource(1m) commands respectively. See
“Getting and Setting the Status/Value of a Simple/Extended Generic Resource (page 128)
and the manpages for more information.
A single package can have a combination of simple and extended resources, but a given
generic resource cannot be configured as a simple resource in one package and as an
extended resource in another package. For e.g., a generic resource "sfm_disk" cannot
be a simple resource in package pkg1 and extended resource in another package pkg2.
It must be either simple generic resource in all packages or extended generic resource
in all packages.
See also “Using Generic Resources to Monitor Volume Groups” (page 98).
Using Older Package Configuration Files
If you are using package configuration files that were generated using a previous version
of Serviceguard, HP recommends you use the cmmakepkg command to open a new
template, and then copy the parameter values into it. In the new template, read the
descriptions and defaults of the choices that did not exist when the original configuration
How the Package Manager Works 57