Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Troubleshooting Exchange Server 2003 Server Migration and Interoperability (part 2) - Using the Netdiag and Dcdiag Command-Line Utilities

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
6/12/2011 4:36:47 PM

Practice: Using the Netdiag and Dcdiag Command-Line Utilities

The netdiag utility tests network connectivity. The tool lets you specify a number of optional parameters, such as /test: to run a specific test and /d: to specify a domain. However, it is typically run either with no parameters or with the /fix switch to repair minor errors and the /debug switch to give detailed output. The output from the tool can be redirected to a text file for analysis.

The dcdiag utility is mainly used to test domain controller operation, but it also tests DNS availability. If there is a problem with your Active Directory domain or your DNS server, then Exchange Server 2003 will not install and dcdiag can help troubleshoot the failure. The utility has a number of parameters, all of which are optional. You can use the /s: switch to specify a domain controller, the /u: switch to specify a user (by username and domain name), and the /p: switch to specify a password. If you do not supply any of these parameters, then the utility will test the host on which it is run in the context of the logged in user. The /fix switch fixes the Service Principal Names (SPNs) on the specified domain controller, and the /test: switch allows you to specify particular tests. All tests except DcPromo and RegisterInDNS must be run on a domain controller.

See Also

Details of the netdiag and dcdiag tests and parameters may be obtained from the Windows Server 2003 help files. Search under “Support Tools.”


In this practice, you create files to hold the output of the tests, run the netdiag tests on a normal system and on a faulty system, compare the outputs, and then do the same with the dcdiag tests.

Exercise 1: Create Files to Hold the Test Output

To create files to hold the test output, perform the following steps:

1.
On Server01, create a new folder named C:\Tests.

2.
In the C:\Tests folder, create the following empty text files:

  • Netdiag1.txt

  • Netdiag2.txt

  • Dcdiag1.txt

  • Dcdiag2.txt

Note

Some administrators do not create the required folder and files before using command-line utilities such as netdiag and dcdiag, because the utilities create them automatically. However, not all command-line utilities do this. Arguably, it is good practice to create files before you run any utility that uses them.


Exercise 2: Use Netdiag to Check Network Connectivity

To use netdiag to test network connectivity on Server01, perform the following steps:

1.
On Server01, open the Command console.

2.
Enter netdiag/debug/fix>c:\tests\netdiag1.txt.

3.
Open the Netdiag1.txt file using Microsoft Notepad.

4.
Read the test output. Use the search function to find “Errors,” “Warning,” or “Failed.” A section of the test output is shown in Figure 1.

Figure 1. Netdiag output


Exercise 3: Use Netdiag to Find a Connection Fault

To create a connection fault on Server01 and use netdiag to diagnose the fault, perform the following steps:

1.
On Server01, unplug the connector from Local Area Connection.

2.
Open the Command console.

3.
Enter netdiag/debug/fix>c:\tests\netdiag2.txt.

4.
Open the Netdiag2.txt file using Notepad.

5.
Read the test output. Use the search function to find “Fatal.” The relevant section of the test output is shown in Figure 2.

Figure 2. Netdiag output showing a fatal error


6.
Replace the network connector for Local Area Connection. Test the connection by pinging Server02.

Exercise 4: Use Dcdiag to Test Server02

In this exercise, you run dcdiag from Server01 to test Server02. If Server02 is not a domain controller on your test network, then test Server01 instead. To test Server02 using dcdiag, perform the following steps:

1.
On Server01, open the Command console.

2.
Enter dcdiag /s:server02 /n:contoso.com /u:contoso.com\administrator /p:* /v /f:c:\tests\dcdiag1.txt /fix.

3.
Enter the password for the contoso.com administrator when prompted. The test completes as shown in Figure 3.

Figure 3. Running dcdiag on Server02


4.
Open the Dcdiag1.txt file using Notepad and read the results. A section of the test output is shown in Figure 4.

Figure 4. Output of dcdiag test on Server02

Exercise 5: Use Dcdiag to Detect a Fault on Server02

In this exercise, you stop the DNS service on Server02 and then run dcdiag from Server01 to test Server02. To use dcdiag to detect a fault on Server02, perform the following steps:

1.
On Server02, open the DNS console, right-click SERVER02, and then click Stop.

2.
On Server01, open the Command console.

3.
Enter dcdiag /s:server02 /n:contoso.com /u:contoso.com\administrator/p:*/v/f:c:\tests\dcdiag2.txt/fix.

4.
Enter the password for the contoso.com administrator when prompted.

5.
Open the Dcdiag2.txt file using Notepad and read the results. The relevant section of the test output is shown in Figure 5.

Figure 5. Dcdiag failure notification on Server02


6.
Start the DNS service on Server02.
Other -----------------
- Install Windows Server 2008 R2 Roles (part 2) - Install Roles on a Windows Server 2008 R2 Server Core Installation
- Install Windows Server 2008 R2 Roles (part 1) - Install Roles on a Windows Server 2008 R2 Full Server Installation
- Plan for Windows Server 2008 R2 Roles
- Migrate to Windows Server 2008 R2
- BizTalk 2009 : Host Integration Server 2009 - Transaction Integrator
- BizTalk 2009 : Host Integration Server 2009 - SNA Load Balancing
- Microsoft Dynamics CRM 2011 : Creating a Contact
- Microsoft Dynamics CRM 2011 : Creating an Account & Using Parent Accounts and Sub-Accounts
- SharePoint and Restoring a SQL Server 2008 Backup
- SharePoint and 2010 : How to Restore a SQL Server 2008 Database Backup
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server