Operating System - HP-UX
1819812 Members
2916 Online
109607 Solutions
New Discussion юеВ

Increase ServiceGuard CMCLD Logging

 
Lee Harris_5
Valued Contributor

Increase ServiceGuard CMCLD Logging

Hi,

I'm not sure if I maybe dreamt this, but I thought there was a way of increasing the amount of logging that ServiceGuard does maybe by running cmcld with certain options? This is the logging which is written to syslog.

Does anyone know how I can do this?

Many Thanks - Lee
3 REPLIES 3
Stephen Doud
Honored Contributor

Re: Increase ServiceGuard CMCLD Logging

An undocumented command called cmsetlog will increase cmcld logging. However, the output is difficult to interpret because one would have to understand the internals of Serviceguard to understand the logs.
If you still want to use it, use 'cmsetlog -h' to get a usage statement.
To reset the logging, use the -r and -s flags.

Do you have a problem with Serviceguard that you need to investigate?
rariasn
Honored Contributor

Re: Increase ServiceGuard CMCLD Logging

Hi Lee,

CMSETLOG - DIAGNOSTIC - Alter destination of log and logging levels of the
cmcld
cmsetlog allows deeper logging of SG actions
usage: cmsetlog [-M ] [-C ] []
cmsetlog -r
cmsetlog -f
cmsetlog -s

-M : selects a module:
CLM - cluster management PKG - package management
NET - network interface SRV - service monitoring
LOC - local communications REM - remote communications
SDB - status database SYN - synchronization
CMD - command server COM - communications server
DLM - distributed lock manager LVM - shared LVM
UTL - general support

-C : selects a category:
ERR - Internal error XER - External error
DTH - Fatal internal error INT - Action
EXT - Event PER - Frequent Action
TRC - ^T*R*A*C*E^

Without -M, ALL modules are effected
Without -C, all categories except PER are effected
Without level, logging is set to minimal levels

-r: resets all logging to minimal levels
-f: daemon starts logging to specified file
-s: daemon logs only to syslog

Note that cmsetlog operates only on the local daemon.
It must be run on each node you wish to change logging on

rgs,
melvyn burnard
Honored Contributor

Re: Increase ServiceGuard CMCLD Logging

be VERY careful about using the cmsetlog utility, it is an unsupported utility meant only for HP use.

You can up the logging for Serviceguard by changing the two hacl-cfg lines in /etc/inetd.conf to add in: -T where is a number from 1 to 5, and then you do inetd -c.
this is done on a per node basis.
Some time ago certain SG commands also had the -T option added to them so that you can run these commands with increased logging.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!