Sun Cluster Data Service for WebSphere Message Broker Guide for Solaris OS

ProcedureHow to turn on debug for Sun Cluster HA for WebSphere Message Broker

Sun Cluster HA for WebSphere Message Broker can be used by multiple WebSphere Message Broker instances. It is possible to turn debug on for all WebSphere Message Broker instances or a particular WebSphere Message Broker instance.

A config file exists under /opt/SUNWscmqi/xxx/etc, where xxx can be sib (Broker or Configuration Manager) or siu (UserNameServer).

These files allow you to turn on debug for all WebSphere Message Broker instances or for a specific WebSphere Message Broker instance on a particular node or zone within the cluster. If you require debug to be turned on for Sun Cluster HA for WebSphere Message Broker across the whole cluster, repeat this step on all nodes within the cluster.

  1. 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 grep daemon /etc/syslog.conf, shows that daemon.debug has been set.


    # grep daemon /etc/syslog.conf
    *.err;kern.debug;daemon.debug;mail.crit        /var/adm/messages
    *.alert;kern.err;daemon.err                    operator

    Restart the syslog daemon.

    1. If running Solaris 9


      # pkill -1 syslogd
      
    2. If running Solaris 10


      # svcadm disable system-log
      # svcadm enable system-log
      
  2. Edit /opt/SUNWscmqi/xxx/etc/config.

    Perform this step for each component that requires debug output, on each node of Sun Cluster as required.

    Edit /opt/SUNWscmqi/xxx/etc/config and change DEBUG= to DEBUG=ALL or DEBUG=resource.


    # cat /opt/SUNWscmqi/sib/etc/config
    #
    # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    ##ident   "@(#)config 1.2     06/03/21 SMI"
    #
    # Usage:
    #       DEBUG=<RESOURCE_NAME> or ALL
    #
    DEBUG=ALL

    Note –

    To turn off debug, reverse the steps above.