There are many tools within Windows 2000 that allow you to monitor and diagnose network and dial-up connections. PPP logging records the series of programming functions and PPP control messages during a PPP connection. You can verify whether your modem is working properly by using modem diagnostics and logging. The Netdiag tool can be used to test many networking components. It can be configured to run and report on tools such as Ping, IPConfig, and so on.
PPP Logging
You can troubleshoot Windows 2000 Professional PPP client connections by using PPP logging on Windows 2000. PPP logging records the series of programming functions and PPP control messages during a PPP connection and is a valuable source of troubleshooting information when you are troubleshooting the failure of a PPP connection. To enable PPP logging on your Windows 2000 remote access server, select the
Enable Point-to-Point Protocol (PPP) logging
option on the
Event Logging
tab from the properties of a remote access server using the Routing and Remote Access administrative tool.
To enable PPP logging on the client that is initiating the connection, use the Netsh command. The syntax for the command is:
Netsh ras set tracing ppp enabled
Conversely, if you want to stop PPP logging, the command syntax is:
Netsh ras set tracing ppp disabled
Modem Logging
By using
Phone and Modem Options
in Control Panel, you can record a log of commands as they are sent to your modem by communication programs or the operating system. On Windows 2000 Professional, logging is always turned on and the log is overwritten at the beginning of every session unless you select the
Append to Log
check box.
Note
Commands sent to the modem are captured in the file %
SystemRoot
%\ModemLog_
Model
.txt. %
SystemRoot
%is usually C:\Winnt\System32\.
Model
is the name of the modem as it appears in the list of installed modems on the
Modems
tab of
Phone and Modem Options
.
Modem Diagnostics
You can verify whether your modem is working properly by using the diagnostics that are available by means of
Phone and Modem Options
in Control Panel.
When you query a modem, Windows 2000 runs the commands and displays the results, as shown in Table 21.7.
Table 21.7 Modem Query Commands and Responses
|
Command
|
Response
|
|
ATQ0V1E0
|
Initializes the query.
|
|
AT+GMM
|
Model identification (ITU V.250 recommendation is not supported by all modems).
|
|
AT+FCLASS=?
|
Fax classes supported by the modem, if any.
|
|
AT#CLS=?
|
Shows whether the modem supports the Rockwell voice command set.
|
|
ATI
n
|
Displays manufacturers information for
n
= 1 through 7. This provides information such as the port speed, the result of a checksum test, and the model information. Check the manufacturer's documentation for the expected results.
|
NetDiag
The Netdiag tool is available in the \support tools directory of your Windows 2000 Professional operating system CD. Netdiag isolates networking and connectivity problems by performing a series of tests to determine the state of your network client and its functionality. Optionally, it can generate a report of the results. For example, it can report on the network adapter configuration details, including the adapter name, configuration, media, globally unique identifier (GUID), and statistics. Using it, you can run a comprehensive sequence of networking tools such as Ping, IPConfig, and so on. For more information about Netdiag, see
Troubleshooting Tools and Strategies
in this book.
Device Manager
Device Manager provides you with information about how the hardware on your computer is installed and configured. It can help you determine the source of resource conflicts, and the status of COM ports. You can also use Device Manager to check the status of your hardware and update device drivers, such as modem drivers, on your computer.