Article ID: 4343, created on Mar 24, 2008, last review on May 6, 2014

  • Applies to:
  • Sphera

Symptoms

I want Sphera components to run in debug mode all the time.

Resolution

This Howto describes how to enable HostingDirector/DomainDirector/ClusterDirector to run in debug mode when they are started.

HostingDirector:

1. Stop the HostingDirector.
2. Edit <SPHERA_BASE>/conf/hostdir.xml
3. Search for "<runner>".
4. In the <runner> section, find the following:
<start
                        bin="/usr/sphera/hostdir/bin/manager"
                        key="manager"
                        name="MANAGER"
                        signal="USR1"/>
5. Add the param=" -d path" anywhere in the <start> section. After the change it will look like this:
  <start
                        bin="/usr/sphera/hostdir/bin/manager"
                        key="manager"
                        name="MANAGER"
                        param=" -d /tmp/hostdir_debug.log"
                        signal="USR1"/>
6. Save the file
7. Start HostingDirector.

DomainDirector:

1. Stop the DomainDirector.
2. Edit <DomainDirector_BASE>/conf/dns.xml
3. Search for "<runner>".
4. In the <runner> section, find the following:
<start
                        bin="/usr/sphera/DomainDirector/bin/dns_master"
                        key="master"
                        name="MASTER"
                        signal="TERM"/>
5. Add the param=" -d path" anywhere in the <start> section. After the change it will look like this:
<start
                        bin="/usr/sphera/DomainDirector/bin/dns_master"
                        key="master"
                        name="MASTER"
                        param=" -d /tmp/dd_debug.log"
                        signal="TERM"/>
6. Save the file
7. Start the DomainDirector.

ClusterDirector:

1. Stop the ClusterDirector.
2. Edit <ClusterDirector_BASE>/conf/master.xml
3. Search for "<runner>".
4. In the <runner> section, find the following:
<start
                        bin="/usr/sphera/ClusterDirector/bin/master"
                        key="master"
                        name="MASTER"
                        signal="TERM"/>
5. Add the param=" -d path" anywhere in the <start> section. After the change it will look like this:
<start
                        bin="/usr/sphera/ClusterDirector/bin/master"
                        key="master"
                        name="MASTER"
                        param=" -d /tmp/dd_debug.log"
                        signal="TERM"/>
6. Save the file
7. Start the DomainDirector.

* Note - Even after stoping and restarting a component, the old debug log does not start from scratch, the new debug data is appended to the old log.

5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF