13.1 Viewing Driver Processes

To view the driver processing events, use DSTRACE. You should only use it during testing and troubleshooting the driver. Running DSTRACE while the drivers are in production increases the utilization on the Identity Manager server and can cause events to process very slowly.

In order to see the driver processes in DSTRACE, values are added to the Driver Set and the driver objects. You can do this in Designer and iManager.

13.1.1 Adding Trace Levels in Designer

You can add trace levels to the Driver Set object or to each Driver object.

Driver Set

  1. In an open project in Designer, select the Driver Set object in the Outline view.

    Selecting the Driver Set Object
  2. Right-click and select Properties, then click 5. Trace.

  3. Set the parameters for tracing, then click OK.

    See Table 13-1 for more information about the Driver Set trace parameters.

    If you set the trace level on the Driver Set object, all drivers appear in the DSTRACE logs.

Table 13-1 Driver Set Trace Parameters

Parameter

Description

Driver trace level

As the Driver object trace level increases, the amount of information displayed in DSTRACE increases.

Trace level 1 shows errors, but not the cause of the errors. If you want to see password synchronization information, set the trace level to 5.

XSL trace level

DSTRACE displays XSL events. Set this trace level only when troubleshooting XSL style sheets. If you do not want to see XSL information, set the level to zero.

Java debug port

Allows developers to attach a Java debugger.

Java trace file

When a value is set in this field, all Java information for the Driver Set object is written to a file. The value for this field is the path for that file.

As long as the file is specified, Java information is written to this file. If you do not need to debug Java, leave this field blank.

Trace file size limit

Allows you to set a limit for the Java trace file. If you set the file size to Unlimited, the file grows in size until there is no disk space left.

NOTE:The trace file is created in multiple files.Identity Manager automatically divides the maximum file size by ten and creates ten separate files. The combined size of these files equals the maximum trace file size.

Driver

  1. In an open project in Designer, select the Driver object in the Outline view.

    Selecting the Driver Object
  2. Right-click and select Properties, then click 8. Trace.

  3. Set the parameters for tracing, then click OK.

    See Table 13-2 for more information about these parameters.

    If you set the parameters only on the Driver object, only information for that driver appears in the DSTRACE log.

Table 13-2 Driver Trace Parameters

Parameter

Description

Trace level

As the Driver object trace level increases, the amount of information displayed in DSTRACE increases.

Trace level 1 shows errors, but not the cause of the errors. If you want to see password synchronization information, set the trace level to 5.

if you select Use setting from Driver Set, the value is taken from the Driver Set object.

Trace file

Specify a filename and location for where the Identity Manager information is written for the selected driver.

if you select Use setting from Driver Set, the value is taken from the Driver Set object.

Trace file size limit

Allows you to set a limit for the Java trace file. If you set the file size to Unlimited, the file grows in size until there is no disk space left.

if you select Use setting from Driver Set, the value is taken from the Driver Set object.

NOTE:The trace file is created in multiple files.Identity Manager automatically divides the maximum file size by ten and creates ten separate files. The combined size of these files equals the maximum trace file size.

Trace name

The driver trace messages are prepended with the value entered instead of the driver name. Use this option if the driver name is very long.

13.1.2 Adding Trace Levels in iManager

You can add trace levels to the Driver Set object or to each Driver object.

Driver Set

  1. In iManager, select Identity Manager > Identity Manager Overview.

  2. Browse to the Driver Set object, then click Search.

  3. Click the Driver Set name.

    Selecting Driver Set Object
  4. Select the Misc tab for the Driver Set object.

  5. Set the parameters for tracing, then click OK.

    See Table 13-1 for more information about these parameters.

Driver

  1. In i Manager, select Identity Manager > Identity Manager Overview.

  2. Browse to the Driver Set object where the Driver object resides, then click Search.

  3. Click the upper right corner of the Driver object, then click Edit properties.

  4. Select the Misc tab for the Driver object.

  5. Set the parameters for tracing, then click OK.

    See Table 13-2 for more information.

    NOTE:The option Use setting from Driver Set does not exist in iManager.

13.1.3 Capturing Driver Processes to a File

You can save driver processes to a file by using the parameter on the Driver object or by using DSTRACE. The parameter on the Driver object is the Trace file parameter, under the MISC tab.

The following methods helps you capture and save Identity Manager processes through DSTRACE on different platforms.

NetWare

Use dstrace.nlm to display trace messages on the system console or trace messages to a file ( sys:\system\dstrace.log). dstrace.nlm displays the trace messages to a screen labeled DSTrace Console.

  1. Enter dstrace.nlm at the server console to load dstrace.nlm into memory.

  2. Enter dstrace screen on at the server console to allow trace messages to appear on the DSTrace Console screen.

  3. Enter dstrace file on at the server console. to cpature trace messages sent to the DSTrace Console to the dstrace.log.

  4. (Optional) Enter dstrace -all at the server console to make it easier to read the trace log.

  5. Enter dstrace +dxml dstrace +dvrs at the server console to display Identity Manager events.

  6. Enter dstrace +tags dstrace +time at the server console to display message tags and time stamps.

  7. Toggle to the DSTrace Console screen and watch for the event to pass.

  8. Toggle back to the server console.

  9. Type dstrace file off at the server console.

    This stops capture trace messages to the log file. It also stops logging the information into the file.

  10. Open the dstrace.log in a text editor and search for the event or the object you modified.

Windows

  1. Open the Control Panel > NDS Services > dstrace.dlm, then click Start to display the NDS Server Trace utility window.

  2. Click Edit > Options, then click Clear All to clear all of the default flags.

  3. Select DirXML and DirXML Drivers.

  4. Click OK.

  5. Click File > New.

  6. Specify the filename and location where you want the DSTRACE information saved, then click Open.

  7. Wait for the event to occur.

  8. Click File > Close.

    This stops the information from being written to the log file.

  9. Open the file in a text editor and search for the event or the object you modified.

UNIX

  1. Enter ndstrace to start the ndstrace utility.

  2. Enter set ndstrace=nodebug to turn off all trace flags currently set.

  3. Enter set ndstrace on to display trace messages to the console.

  4. Enter set ndstrace file on to capture trace messages to the file ndstrace.log to the directory where eDirectory is installed. By default it is /var/nds.

  5. Enter set ndstrace=+dxml to display the Identity Manager events.

  6. Enter set ndstrace=+dvrs to display the Identity Manager driver events.

  7. Wait for the event to occur.

  8. Enter set ndstrace file off to stop the logging of information to file.

  9. Enter exit to quite the ndstrace utility.

  10. Open the file in a text editor. Search for the event or the object that was modified.

iMonitor

iMonitor allows you to get DSTRACE information from a Web browser. It does not matter where Identity Manager is running. The following files run iMonitor:

  • ndsimon.nlm runs on NetWare®.

  • ndsimon.dlm runs on Windows.

  • ndsimonitor runs on UNIX.

  1. Access iMonitor from http:// server_ip:8008/nds.

    Port 8008 is the default.

  2. Specify a username and password with administrative rights, then click Login.

  3. Select Trace Configuration on the left side.

  4. Click Clear All.

  5. Select DirXML and DirXML Drivers.

  6. Click Trace On.

  7. Select Trace History on the left side.

  8. Click the document with the Modification Time of Current to see a live trace.

  9. Change the Refresh Interval if you want to see information more often.

  10. Select Trace Configuration on the left side, then click Trace Off to turn the tracing off.

  11. Select Trace History to view the trace history.

    The files are distinguished by their time stamp.

If you need a copy of the HTML file, the default location is:

  • NetWare: sys:\system\ndsimon\dstrace*.htm

  • Windows: Drive_letter:\novell\nds\ndsimon\dstrace\*.htm

  • UNIX: /var/nds/dstrace/*.htm