다음을 통해 공유


How to Enable Regtrace for NDR Troubleshooting

마지막으로 수정된 항목: 2007-04-13

This topic explains how to enable Regtrace, which is available on servers that are running Microsoft Exchange. It is a useful tool for diagnosing and troubleshooting NDRs.

Running Regtrace produces a trace file. The trace file is a binary-encoded file that contains debug-level information about the transport and routing components, such as NDRs, that are being traced. The trace file is available at the location that is specified on the Output tab of Regtrace. The default location for the file is C:\Trace.atf.

If you request assistance from Microsoft Customer Support Services (CSS), you can expect that they will require Regtrace output files for analysis as part of the troubleshooting process. You may have to use file compression software to package the files so that you can deliver them to CSS by means of an FTP server, the Microsoft File Exchange (MSFE), or the Premier Service Desk. For details about any of these delivery methods, consult your CSS representative.

Before You Begin

Before you perform the procedure in this topic, read NDR(배달 못 함 보고서) 문제.

To perform the following procedures, the account you use must be delegated membership in the local Administrator group. For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see 사용 권한 고려 사항.

주의

레지스트리를 잘못 편집하면 운영 체제를 다시 설치해야 하는 심각한 문제가 발생할 수 있습니다. 레지스트리를 잘못 편집하여 발생한 문제는 해결되지 않을 수 있습니다. 레지스트리를 편집하기 전에 모든 중요 데이터를 백업하십시오.

Procedure

To enable regtrace

  1. At a command prompt, type regtrace. The Trace Settings window opens.

  2. On the Traces tab, select all the check boxes.

    Traces tab of Trace Settings properties
    추적 설정 속성의 추적 탭

  3. On the Output tab, make sure that the File option is selected, and then provide a path to a location that has enough capacity to store a large file as output.

  4. On the Threading tab, make sure that the Write traces on a Background Thread option is not selected, and then click OK.

  5. In Registry Editor, locate the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MosTrace\CurrentVersion\
    DebugAsyncTrace
    
  6. On the Edit menu, click Add Value, and then add the following registry values:

    Value Name: Modules
    Data Type: REG_SZ
    Value:   AQ
             CAT
             DS2MB
             dsevntwrap
             EXSINK
             IMAP4SVC
             REAPI
             RESVC
             Routing
             SMTP
             StoreDev
             TranMsg
             DSACCESS
    
  7. Next, add the MaxTraceFileSize registry key value to set the maximum trace file size to 20 MB. On the Edit menu, click Add Value and add the following:

    Value Name:   MaxTraceFileSize
    Data Type:   REG_DWORD
    Value:   20 (decimal)
    
  8. Quit Registry Editor.

  9. Reproduce the issue that you are troubleshooting. For example, if mail is being returned as undeliverable, send some e-mail messages to an address that will cause Exchange to return the message undelivered.

  10. When you have reproduced the issue several times, stop tracing. In Regtrace, click the Output tab and select No Tracing.

    참고

    It is important to disable tracing when you have completed troubleshooting an issue.