repadmin Check Status
The repadmin.exe tool is a critical utility for diagnosing and resolving Active Directory replication issues. It provides detailed insights into replication status, transfer failures, and directory partition health. By leveraging its commands, administrators can proactively identify and resolve replication inconsistencies, ensuring data consistency across domain controllers (DCs).
Checking Replication Status with repadmin /showrep¶
The /showrep command displays the replication status of all DCs in the domain. It shows whether replication is occurring as expected and highlights potential issues.
Command syntax:
<DCName> with the hostname of a DC (e.g., DC01), or omit it to check all DCs.
Example output:
DC=DC01,DC=Domain,DC=com
Partitions: DC=Domain,DC=com
Last Attempt: 2023-10-05 14:30:00
Last Success: 2023-10-05 14:25:00
Status: Success
Interpretation:
- Status: Success indicates healthy replication. Failed or Error suggests issues.
- Last Attempt/SUCCESS: Time stamps help identify recent replication activity.
- Partitions: Verify all critical partitions (e.g., DC=Domain,DC=com) are listed.
Identifying Failed Replication Transfers with repadmin /showrepl¶
The /showrepl command provides granular details about replication partners, transfer status, and errors. It is ideal for diagnosing failed transfers.
Command syntax:
<DCName> runs the command against all DCs.
Example output:
DC=DC01,DC=Domain,DC=com
Replication Partners: DC02,DC=Domain,DC=com
Status: Failed
Last Attempt: 2023-10-05 15:00:00
Error: 80000000 (Unknown error)
Key checks:
- Look for Status: Failed or Error in the output.
- Use repadmin /showrepl with the /verbose flag for detailed error codes.
- Cross-reference error codes with the Windows Event Viewer (Event ID 13518 or 13519) for context.
Validating Directory Partitions with repadmin /showpart and /showmeta¶
Directory partitions define how data is replicated across DCs. Use these commands to validate their health.
/showpart lists all directory partitions and their replication status:
Partition: DC=Domain,DC=com
Replication Status: Healthy
Partition: CN=Configuration,DC=Domain,DC=com
Replication Status: Healthy
/showmeta checks replication metadata for conflicts or inconsistencies:
Conflict or Inconsistent entries in the output.
Troubleshooting Specific Replication Issues¶
Forcing a Replication Attempt¶
Use /replicate to manually trigger replication between two DCs:
Checking for Replication Conflicts¶
Use /showmeta to identify conflicts in the directory partition:
Key takeaways¶
- Use
repadmin /showrepto quickly assess replication status across all DCs. - Run
repadmin /showreplto diagnose failed transfers and cross-check error codes. - Validate directory partitions with
repadmin /showpartandrepadmin /showmetafor consistency. - Force replication with
/replicateto resolve intermittent connectivity issues. - Always correlate replication errors with Windows Event Viewer logs for precise troubleshooting.