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

HP-UX Handbook Rev 13.00 Page 54 (of 108)
Chapter 15 Serviceguard
October 29, 2013
STA
Status database API
DEV
Storage devices
ATS
Shared tape device
QSM
Quorum Devices
The cmsetlog command (obsolete with SG A.11.19)
The cmsetlog command enables users to obtain a more verbose output of cmcld. This is
extremely useful if a problem should be reproduced. Cmsetlog allows to set the log level and to
restrict logging to specific categories and modules. Cmsetlog is used to enable and disable debug
logging. cmsetlog only works if the Serviceguard cluster is already running and can therefore not
be used to obtain debug logs if the cluster startup fails. Refer to the '-T' option below.
Warning: cmsetlog should only be used for debugging purposes and all debug logging should
be disabled once the debugging has been finished.
cmsetlog is located in the /usr/contrib/bin directory, to stress that: this program is basically
an unsupported tool that should be used only by HP Support or by customer on request by an HP
Support Engineer.
Enable cmcld debug logging with cmsetlog (obsolete with SG A.11.19)
cmsetlog can enable the debug logging for cmcld only on the local node. Note that cmsetlog
operates only on the local daemon. It must be run on each node you wish to change logging on.
Note: With high log levels greater 3, the log files can grow very fast and can fill up the
filesystem. Use cmsetlog -h to display usage information.
Here are various examples that show how cmsetlog can be used to obtain debug logging:
# cmsetlog 5
Log cmcld debug information to syslog.log at log level 5 for all categories (except PER (frequent
actions)) and modules.
# cmsetlog -f /tmp/SG.log
Redirect the Serviceguard cmcld logging in the file /tmp/SG.log. No further logs go into
syslog.log. This is recommended for the verbose log levels greater 3.
# cmsetlog -M NET -M REM 6
Use the most verbose log level for cmcld, but restrict logging to the modules 'network interface'
and 'remote communications'.
# cmsetlog -M NET -C PER -C ERR -C XER -C INT -C EXT -C DTH -C TRC 6
The most complete log that is possible.