Collecting an ASCII server trace at startup

Collect ASCII server trace to determine and debug issues that are related to a failed directory server startup. You can also use it to trace a specific operation at directory server startup.

Procedure

  1. Stop the directory server instance, if it is running. Issue the command of the following format:
    ibmslapd -I instance_name -k
  2. Determine whether tracing is enabled. Issue the following command:
    ldtrc info
  3. If trace is disabled (in "off" mode), issue the following command to enable tracing:
    ldtrc on
  4. Start the directory server in DEBUG mode and redirect the output to a file.
    On AIX®, and Linux™ platforms
    Issue the command of the following format:
     ibmslapd –I instance_name –n -h 65535 2>&1 | tee /tmp/slapd_trace.out
    On Windows™ platform
    Issue the command of the following format:
    (ibmslapd –I instance_name -n -h 65535 2>&1) > C:\slapd_trace.out
  5. Re-create the problem. After the error or the condition you want to trace occurs and the screen no longer displays messages, press Ctrl C to stop the process. Now, you can analyze the trace file.
  6. Disable tracing. Issue the following command:
    ldtrc off