Networker

Re: [Networker] How do I enable debug on the Networker server service on WIndows?

2008-05-15 08:46:22
Subject: Re: [Networker] How do I enable debug on the Networker server service on WIndows?
From: NetWorker <networker AT cresend DOT com>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 15 May 2008 07:28:43 -0500
>From powerlink:

Method 1: Using the dbgcommand
-------------------------------------------------------------

The dbgcommand allows capturing debug info on the fly without restarting
NetWorker.
The debug out, though, is only from the process the dbgcommand is being run
against.
If running the dbgcommand against the nsrd process. This might produce all
the
information you require but if not run the dbgcommand against more process,
like
nsrmmd or use method 2 below:

To use the dgbcommand:
=========================

Note: for Windows 2000 SP3 systems.

When using dbgcommand.exe, you get the error:
Error: 'The dynamic link library MSVCRTD.dll
could not be found in the specified path (PATH)'

You will require the msvcrtd.dll binary.
Contact LEGATO Software (Division of EMC) Custo.mer Support
for this binary. This file can be placed into the nsr\bin
directory along with dbgcommand.exe

If you do not have a copy of the dbgcommand please contact Contact LEGATO
Software (Division of EMC) Customer Support for this binary.

It is called from the command line, using
dbgcommand -p (PID) Debug=(level)

where (PID) is the process id of the NetWorker process you want to debug
where (level) is the desired debug level.

Debug levels 0 to 99 are supported
Debug level 0 is turning off debugging

Example:
dbgcommand -p 124 Debug=9

The debugging output will be placed in the daemon.log file.

The PID can be for virtually any NetWorker process, with the main known
exception
of nsrjb.


Method 2: starting nsrd with paramater -D3
-------------------------------------------------------------

1. Stop NetWorker by running:

- For Windows: net stop nsrexecd
- For Unix (Solaris): /nsr/init.d/networker stop

2. Open a command window session

3 Change directory to NetWorker log directory

Note: No output will made to the NetWorker daemon.log while debug mode is
enabled with this method. All debug output must be captured or it will
be sent to the command window screen.

- For Windows (typically): %Drive%:\Program Files\Legato\nsr\logs
- For Unix: /nsr/logs

3. start nsrexecd with the command:
nsrexecd

4. start nsrd in debug mode and capture output with the command:
nsrd -D3 1>nsrd.debug 2>&1

5. Once the cloning period as completed, stop NetWorker:

6. Stop NetWorker by running:

- For Windows: net stop nsrecexd
- For Unix (Solaris): /nsr/init.d/networker stop

7. Restart NetWorker:

- For Windows:
net start nsrecexd
net Start nsrd
- For Unix (Solaris): /etc/init.d/networker start

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>