HP-UX HB v13.00 Ch-15 - Serviceguard

HP-UX Handbook Rev 13.00 Page 55 (of 108)
Chapter 15 Serviceguard
October 29, 2013
# cmsetlog -C PER -C ERR -C XER -C INT -C EXT -C DTH -C TRC 6
Disable cmcld debug logging with cmsetlog (obsolete with SG A.11.19)
The debug logging is automatically stopped and reset to default once the cluster halted.
To reset the debug logging to default modules, categories and loglevel on a running cluster,
simply use the command
# cmsetlog -r
If the '-f <file>' option has been used with cmsetlog to redirect logging to another file than
syslog.log, you have also to issue
# cmsetlog -s
to direct logging to syslog.log again.
Debug logging of SG commands using the '-T' option
For some commands like cmruncl and cmrunnode there is an additional option -F <file> that
allows to write the debug logs into a file. This option is not supported by cmcheckconf,
cmapplyconf, cmquerycl and others.
This is useful especially if the node is currently not running as a cluster member, because
cmsetlog wouldn't work in this case. Here are some examples:
# cmruncl -v -T 5 -F /tmp/cmruncl.out
The execution of above command gives debug level 5 output in the file /tmp/cmruncl.out for
cluster startup on all cluster nodes.
# cmquerycl -n Node1 -Node2 -T 3 >cmquery.debug
The output of cmquerycl debug logs at log level 3 are written to the local file cmquery.debug.
cmcheckdisk debug logging
cmcheckdisk is used on SG/LX to check the status of disks. The following debug options are
available:
Usage: cmcheckdisk [-h, --help] [-v, --version]
[-c, --config-file <cfg_file>]
[-f, --log-file <log_file>]
[-l, --log-level <1-7>]
<disk_path>
Debug logging of cmlvmd (SG A.11.17 on HPUX and later)
You can start logging for cmsrvassistd by adding the following lines in the
/etc/cmcluster.conf and restarting Serviceguard on the node.
CMLVMD_LOG_FILE=/var/adm/cmcluster/cmsrvassistd.log
CMLVMD_LOG_LEVEL=5