Microsoft KB Archive/313564

= HOW TO: Configure Routing and Remote Access Tracing in Windows 2000 =

PSS ID Number: 313564

Article Last Modified on 11/19/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q313564



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

IN THIS TASK

 * SUMMARY
 * ** Configure Tracing Using the Registry
 * *** Make Tracing Available by Editing the Registry
 * Make Tracing Unavailable by Editing the Registry
 * Configure Tracing Using the NETSH Command
 * *** Make Tracing Available by Using the NETSH Command
 * View a List of Components for Which Tracing Is Available
 * Make Tracing Unavailable by Using the NETSH Command
 * Troubleshooting
 * REFERENCES



SUMMARY
This step-by-step article describes how to make Routing and Remote Access tracing available in Windows 2000.

When you need to monitor the activities of Routing and Remote Access and Dial-Up Networking components, use the tracing functionality to configure Routing and Remote Access and Dial-Up Networking components to log tracing information to a file. You can use and analyze the information that is logged in the files to help you troubleshoot network connectivity issues.

You can make Routing and Remote Access and Dial-Up Networking tracing available by either configuring the registry or using the netsh command.

back to the top

Configure Tracing Using the Registry
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Make Tracing Available by Editing the Registry
To configure Routing and Remote Access and Dial-Up Networking components to log tracing information to a file:  Click Start, and then click Run. In the Open box, type regedit, and then click OK. Locate and click the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing

The components for which you can make tracing available are listed as subkeys under this key.

 Make tracing available for the component that you want. To do so:  In the left pane of Registry Editor, click the subkey that represents the component for which you want to make tracing available. For example, to make tracing available for Challenge Handshake Authentication Protocol (CHAP), click RASCHAP. In the right pane, double-click EnableFileTracing. Type 1 in the Value data box, and then click OK.</li></ol>

By default, Routing and Remote Access activity is recorded to a .log file in the %SystemRoot%\Tracing folder, where   is the name of the component for which tracing is available.

</li> If you want to change the default log file settings, complete any of the following procedures: <ul> To change the default location of the tracing files, double-click FileDirectory, type the location where you want to save the log files (for example, c:\rraslogs ), and then click OK.</li> To change the level of tracing information that is logged to the file, double-click FileTracingMask, type the appropriate value in the Value data box, and then click OK.</li> To change the maximum size limit of the log file, double-click MaxFileSize, type the appropriate value in the Value data box, and then click OK.</li></ul> </li> On the Registry menu, click Exit to quit Registry Editor.</li></ol>

NOTE: Routing and Remote Access tracing uses system resources and hard disk space. After you capture the trace or identify the issue, make sure that you turn off tracing.

back to the top

Make Tracing Unavailable by Editing the Registry
To make tracing unavailable for a Routing and Remote Access or a Dial-Up Networking component: <ol> Click Start, and then click Run.</li> In the Open box, type regedit, and then click OK.</li> Locate and click the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing

</li> In the left pane of Registry Editor, click  , where  is the subkey that represents the component for which you want to make tracing unavailable. For example, to make tracing unavailable for the Telephony Application Programming Interface (TAPI), click RASTAPI.</li> In the right pane, double-click EnableFileTracing, type 0 in the Value data box, and then click OK.</li></ol>

back to the top

Make Tracing Available by Using the NETSH Command
To configure Routing and Remote Access and Dial-Up Networking components to log tracing information to a file: <ol> Click Start, point to Programs, point to Accessories, and then click Command Prompt.</li> At the command prompt, type the following line (where  is the Routing and Remote Access or the Dial-Up Networking component for which you want to make tracing available), and then press ENTER:

netsh ras set tracing  enable

For example, to make Point-to-Point Protocol (PPP) tracing available, type the following line, and then press ENTER:

netsh ras set tracing ppp enable

</li></ol>

By default, Routing and Remote Access activity is recorded to a .log file in the %SystemRoot%\Tracing folder, where   is the name of the component for which tracing is available.

NOTE: Routing and Remote Access tracing uses system resources and hard disk space. After you capture the trace or identify the issue, make sure that you turn off tracing.

back to the top

View a List of Components for Which Tracing Is Available
To display a list that shows whether tracing is available for the Routing and Remote Access and the Dial-Up Networking components on your computer: <ol> Click Start, point to Programs, point to Accessories, and then click Command Prompt.</li> At the command prompt, type the following line, and then press ENTER:

netsh ras show tracing

A list of Routing and Remote Access and Dial-Up Networking components and their tracing settings is displayed.</li></ol>

back to the top

Make Tracing Unavailable by Using the NETSH Command
To make tracing unavailable for a Routing and Remote Access or a Dial-Up Networking component: <ol> Click Start, point to Programs, point to Accessories, and then click Command Prompt.</li> <li>At the command prompt, type the following line (where  is the Routing and Remote Access or Dial-Up Networking component for which you want to make tracing unavailable), and then press ENTER:

netsh ras set tracing  disable

For example, to make tracing unavailable for TAPI, type the following line, and then press ENTER:

netsh ras set tracing rastapi disable

</li></ol>

back to the top

Troubleshooting
When you try to make tracing available for a Routing and Remote Access component by editing the Registry, you may find that the subkey for that component is not displayed under the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing

This behavior can occur if a dial-up networking connection has not been created on the computer. Certain registry keys are not created until a connection exists that uses the keys.

To resolve this behavior, create a dial-up networking connection. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

234025 Some Registry Entries Missing When Enabling Logging Features in RRAS

back to the top

<div class="references_section">