CLI Checking replication primary and secondary domain controller

Опубликовано: 28 Февраль 2025
на канале: HelpTECH-KH
335
3

Step 1 - Check the replication health
Run the following command :
Repadmin /replsummary

Step 2 - Check the inbound replication requests that are queued.
Repadmin /Queue

This command lists elements that are remaining in the replication queue. It displays inbound replication requests that the Domain Controller needs to issue in order to become consistent with its source replication partners.

Step 3 - Check the replication status
Repadmin /Showrepl

This command displays the replication status when the specified domain controller last attempted to implement an inbound replication of Active Directory partitions. It helps in figuring out the replication topology and replication failure.

Step 4 - Synchronize replication between replication partners
Repadmin /syncall

It ensures synchronization between replication partners

Step 5 - Force the KCC to recalculate the topology
Repadmin /KCC

This command forces the KCC (Knowledge Consistency Checker) on targeted domain controller(s) to immediately recalculate its inbound replication topology. It checks and creates the connections between the Domain Controllers. By default KCC runs in the background every 15 minutes to check if a new connection has been established between DCs.

Step 6 - Force replication
Repadmin /replicate

This command forces the replication of the specified directory partition to the destination domain controller from the source DC.