How to use ndstrace to gather a log file

  • 7002672
  • 17-Feb-2009
  • 07-Mar-2019

Environment

Novell eDirectory 8.8 for Linux
Novell eDirectory 8.8 for Solaris
Novell eDirectory 8.7.3.10 for Solaris
Novell eDirectory 8.7.3.10 for Linux

Situation

What are the basic commands to gather a log file with ndstrace?

Resolution

Here's an example to gather a log file of ldap messages using ndstrace. 

Before starting, make sure that the terminal window is large enough.  The first line on the screen should be "NDS Trace Configuation".

1. Type the following commands. 

Note: The prompt changes to 'NDSTrace' once the command is run.

# ndstrace
NDSTrace: set ndstrace = nodebug
NDSTrace: set ndstrace = +ldap
NDSTrace: set ndstrace = +time
NDSTrace: ndstrace on

Note: Type ndstrace at the prompt to see the current settings.

2. Run the desired ldap commands and stop the trace (screen and logging).

NDSTrace: ndstrace off

3. Quit ndstrace

NDSTrace: quit

4. View the log file.  It will be in the specified locations:

eDirectory 8.7.3 - /var/nds/ndstrace.log
eDirectory 8.8 - /var/opt/novell/eDirectory/log/ndstrace.log

Additional Information

See the eDirectory Administration Guide for the complete ndstrace set of instructions.
See KB 7009602 for more instructions on taking a ldap/nmas trace