DESKTOP

Windows Server 2008 : Troubleshooting Replication (part 1) - Checking Replication with repadmin

2/15/2014 1:43:45 AM

Checking Replication with repadmin

One of the primary command prompt commands you can use to troubleshoot Active Directory (AD) replication issues is repadmin. It’s available on DC, and you can use it to view replication data, force replication events, and manually create the replication topology if things really go wrong.

Tip

One of the primary symptoms that indicate a problem with replication is that new users are unable to log on. Their accounts are created in AD using one DC, but when they attempt to log on using a different DC, they receive an error message indicating the username or password is incorrect. After verifying they are using the correct username and password, it’s time to break out repadmin.


repadmin includes several commands that you can use to view replication data as shown in the following table. When AD has problems with replication, these normally give clear indications that you have errors. When these come up error-free, you can be confident that your problem is not due to replication.

Note

You must run repadmin with administrative permissions.


repadmin Status and Data CommandsComments
Show replication status.
C:\> repadmin /showrepl

Displays replication status for recent inbound replication attempts. It identifies replication partners, identifies when the last replication occurred, and determines whether it was successful. Figure 1 shows the output of this command.
Summarize status of replication.
C:\> repadmin /replsummary

This command summarizes the replication state and relative health of a forest. It lists the total number of replication attempts, the number of failures, and the percent of failures compared with the total.
Show highest update sequence numbers.
repadmin /showutdvec dc-name
naming-context
C:\> repadmin /showutdvec dc1
dc=pearson,dc=pub

Replication uses Update Sequence Numbers (USN) to determine whether a DC has the most up-to-date version of an object. You can view the highest USNs for a DC with the /showutdvec switch.

Note

The naming-context is the distinguished name of the directory partition.

View queued replications.
C:\> repadmin /queue

Shows a listing of inbound replication requests that the DC has in queue. This should normally be zero within a site (or certainly a low number). The number of items in queue between sites is dependent on the replication schedule between sites. If you replicate only once a day between sites, this queue will steadily build up into the scheduled replication time.
Show attributes of a DC.
repadmin /showattr dc-name
naming-context
C:\> repadmin /showattr dc1
dc=pearson,dc=pub

You can display the attributes of an object. This is sometimes useful when troubleshooting replication for a specific DC. The example shows the attributes of a DC named dc1 in the pearson.pub domain.

Note

This shows low-level AD data similar to what you can access using the ldp GUI tool.

Show replication metadata for a DC.
repadmin /showobjmeta dc-name
naming-context
C:\> repadmin /showattr dc1
dc=pearson,dc=pub

You can use the /showobjmeta switch to show replication metadata for a DC. The example command displays metadata for the DC named dc1 in the domain pearson.pub. Data includes the attribute ID, version number, originating and local USN, originating server’s globally unique identifier (GUID), and a date and time stamp of the update.
Show bridgehead servers.
/bridgeheads [ /v]
C:\> repadmin /bridgeheads /v

Shows all the bridgehead servers for each site that includes a DC. The /v switch is used for a verbose output.

Note

If you have only DCs in a single site, you won’t have any bridgehead servers assigned.


Figure 1. Viewing the output of the repadmin /showrepl command

Note

replmon (available in Windows Server 2003) is not included in Windows Server 2008 or Windows Server 2008 R2.

Other  
  •  Windows Server 2008 and Windows Vista : Group Policy Preferences: Control Panel Settings (part 2)
  •  Windows Server 2008 and Windows Vista : Group Policy Preferences: Control Panel Settings (part 1)
  •  Windows Server 2008 and Windows Vista : Group Policy Preferences: Windows Settings (part 2)
  •  Windows Server 2008 and Windows Vista : Group Policy Preferences: Windows Settings (part 1)
  •  Windows Server 2008 and Windows Vista : Management and Support of Group Policy Preferences
  •  Windows 7 : ADDING UAC SUPPORT TO YOUR APPLICATION (part 4)
  •  Windows 7 : ADDING UAC SUPPORT TO YOUR APPLICATION (part 3) - Executing as a Separate Process - Creating the Secondary Project , Configuring the Secondary Project
  •  Windows 7 : ADDING UAC SUPPORT TO YOUR APPLICATION (part 2) - Creating a Manifest - Compiling the Manifest into the Application
  •  Windows 7 : ADDING UAC SUPPORT TO YOUR APPLICATION (part 1) - Creating a Manifest - Creating the Application Code
  •  Parallels Desktop 9 For Mac - The Best Of Both Worlds
  •  
    Top 10
    Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
    Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
    3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
    3 Tips for Maintaining Your Cell Phone Battery (part 1) - Charge Smart
    OPEL MERIVA : Making a grand entrance
    FORD MONDEO 2.0 ECOBOOST : Modern Mondeo
    BMW 650i COUPE : Sexy retooling of BMW's 6-series
    BMW 120d; M135i - Finely tuned
    PHP Tutorials : Storing Images in MySQL with PHP (part 2) - Creating the HTML, Inserting the Image into MySQL
    PHP Tutorials : Storing Images in MySQL with PHP (part 1) - Why store binary files in MySQL using PHP?
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    VIDEO TUTORIAL
    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS