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 未傳遞回報問題.

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 權限考量.

Bb430789.Caution(zh-tw,EXCHG.80).gif請注意:
不正確地編輯登錄可能會造成嚴重問題,而需要重新安裝作業系統。 因不正確地編輯登錄而造成的問題可能無法解決。 在編輯登錄之前,請先備份重要資料。

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.