Go to main content

Oracle® Solaris Cluster Data Service for DHCP Guide

Exit Print View

Updated: September 2015
 
 

Debugging HA for DHCP

How to Turn on Debugging for HA for DHCP

The /opt/SUNWscdhc/etc/config file allows you to turn on debugging for a DHCP instance on a particular node within the cluster. If you require debugging to be turned on for HA for DHCP 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
    #
  2. 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
  3. Restart the syslog daemon.
    # svcadm disable system-log
    # svcadm enable system-log
  4. Edit /opt/SUNWscdhc/etc/config.

    Perform this step on each node of cluster as required.

    Edit /opt/SUNWscdhc/etc/config and change DEBUG= to DEBUG=ALL or DEBUG=sun-cluster-resource.

    # cat /opt/SUNWscdhc/etc/config
    #
    # Copyright 2012 Oracle and/or its affiliates.  All rights reserved.
    #
    # ident "@(#)config     1.1     01/03/12 Oracle"
    #
    # Usage:
    #       DEBUG=<RESOURCE_NAME> or ALL
    #
    DEBUG=ALL

    Note -  To turn off debugging, reverse the steps above.