Use the information in this section to understand how to turn on debug for Sun Cluster HA for WebSphere MQ.
Sun Cluster HA for WebSphere MQ can be used by multiple WebSphere MQ instances. However, it is possible to turn debug on for all WebSphere MQ instances or a particular WebSphere MQ instance.
Each WebSphere MQ component has a DEBUG file under /opt/SUNWscmqs/xxx/etc, where xxx is a three character abbreviation for the respective WebSphere MQ component.
These files allow you to turn debug on for all WebSphere MQ instances or for a specific WebSphere MQ instance on a particular node with Sun Cluster. If you require debug to be turned on for Sun Cluster HA for WebSphere MQ across the whole Sun Cluster, you will need to repeat this step on all nodes within Sun Cluster.
Perform this step for the Queue Manager component (mgr), then repeat for each of the optional WebSphere MQ components that requires debug output, on each node of Sun Cluster as required.
Edit /etc/syslog.conf
Edit /etc/syslog.conf and change daemon.notice to daemon.debug
# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator # |
Change the daemon.notice to daemon.debug and restart syslogd. Note that the output below, from the command grep daemon /etc/syslog.conf, shows that daemon.debug has now been set.
# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.debug;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator # # pkill -1 syslogd # |
Edit /opt/SUNWscmqs/mgr/etc/config
Edit /opt/SUNWscmqs/mgr/etc/config and change DEBUG= to DEBUG=ALL or DEBUG=resource
# cat /opt/SUNWscmqs/mgr/etc/config # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # Usage: # DEBUG=<RESOURCE_NAME> or ALL # START_COMMAND=/opt/mqm/bin/<renamed_strmqm_program> # STOP_COMMAND=/opt/mqm/bin/<renamed_endmqm_program> # DEBUG=ALL START_COMMAND= STOP_COMMAND= # |
To turn off debug, simply reverse the steps above.