Cdir_ldp.exe Logs Additional Information in the Ldscript.log File (304543)



The information in this article applies to:

  • Microsoft Metadirectory Services 2.1
  • Microsoft Metadirectory Services 2.2
  • Microsoft Metadirectory Services 2.2 SP1

This article was previously published under Q304543

SUMMARY

There is an additional log file that is located in the Zoomserv\Data\Logs folder. The Ldscript.log file may be useful when you are trying to troubleshoot management agents that use the Cdir_LDP.EXE, such as the Microsoft Exchange LDAP and Netscape management agents. This article describes how to increase the logging detail level on this file to troubleshoot LDAP issues.

MORE INFORMATION

Turning up Logging for Ldscript.log

  1. Go to the Zoomserv\data\config folder.
  2. Right-click the Logcfg file, and then click Open.
  3. In the Open With dialog box, choose Notepad to open the file.

    The config file looks like the following sample when you open it in Notepad:
    ######################################################################
    #  FILE:  logcfg
    #
    #  Description:  Configuration file for the LOG module
    ######################################################################
    #
    log_file_name           genlogs
    #
    log_level_to_console    -1
    #
    log_level_to_file       0
    log_level_to_eventlog   0
    #
    log_max_bytes_in_file   500000
    #
    # specific module log files
    #
    log_log                 loglogs
    log_smf                 smflogs
    log_pe                  pelog
    log_vmb                 vmb.log
    log_zscr                zscrlog
    log_zst                 vnslog
    log_cdir_ln             lnscript.log
    log_sync                sync.log
    log_access              access.log
    log_cdir_ldp            ldscript.log
    log_dns            	dns.log
    log_dhcp            	dhcp.log
    log_smtpin            	smtpin.log
    log_smtpout            	smtpout.log
    log_viars            	viars.log
    log_bind            	bind.log
    log_httplog            	http.log
    log_smtpinmsg           smtpinmsg.log
    log_smtpoutdsn          smtpoutdsn.log
    					
  4. To increase the logging level edit the following lines by changing
       log_level_to_file       0
    						
    to:
       log_level_to_file       3
    						
    You can increase this number should as you need more detailed logging. The logging levels are -1 to 9.
  5. Save and close the file.

Increasing the Size of the Log Files

It should be noted that this setting affects all log files and not just the Ldscript.log file.

In many cases, increasing the level of log detail can ultimately cause the file to roll over more quickly and there may be data loss as a result. The default maximum log file size is 500 kilobytes (KB) or 500,000 bytes. It is suggested that the default size of the log files be adjusted upward for troubleshooting and then reduced after you have resolved the issue. The amount of available disk space should also be considered before you adjust the default maximum log file size.

To increase the maximum size of the log files:
  1. Go to the Zoomserv\data\config folder.
  2. Right-click the Logcfg file, click Open, and then use Notepad to open the file.
  3. Find the line and change the default maximum file size from 5 MB to 50 MB by changing
      log_max_bytes_in_file   500000
    						
    to:
       log_max_bytes_in_file   5000000
    					
  4. Save and close the file.

Modification Type:MinorLast Reviewed:1/25/2006
Keywords:kbenv kbinfo KB304543