Two helpful tools for monitoring and troubleshooting replication issues are provided in the Support Tools. The first tool is the Replication Administrator (RepAdmin), which is a command-line utility. The second tool is the Replication Monitor (ReplMon), which is a graphical user interface (GUI) utility. Both tools provide similar functionality, albeit one from the command line and one from the GUI.
You run the Replication Administrator from the command line. Most command-line parameters accept a list of the domain controllers you want to work with called DCList and specified as follows:
* is a wildcard that includes all domain controllers in the enterprise.
PartialName* is a partial server name that includes a wildcard to match the remainder of the server name.
Site:SiteName includes only domain controllers in the named site.
Gc: includes all global catalog servers in the enterprise.
Knowing this, there are many tasks you can perform using the Replication Administrator. These tasks are summarized in Table 39-1.
Table 39-1. Key Replication Administrator Commands
Command to Type | Description |
---|---|
repadmin /bridgeheads DCList] [/verbose] | Lists bridgehead servers. |
repadmin /failcache DCList | Lists failed replication events that were detected by the Knowledge Consistency Checker (KCC). |
repadmin istg DCList [/verbose] | Lists the name of the ISTG for a specified site. |
repadmin /kcc DCList [/async] | Forces the KCC to recalculate the intrasite replication topology for a specified domain controller. By default, this recalculation occurs every 15 minutes. Use the /Async options to start the KCC and not wait for it to finish the calculation. |
repadmin /latency DCList [/verbose] | Lists the amount of time between intersite replications using the ISTG Keep Alive timestamp. |
repadmin /queueDCList | Lists tasks waiting in the replication queue. |
repadmin /replsummary DCList | Displays a summary of the replication state. |
repadmin /showcert DCList | Displays the server certificates loaded on the specified domain controllers. |
repadmin /showconn DCList | Displays the connection objects for the specified domain controllers. Defaults to the local site. |
repadmin /showctx DCList | Lists computers that have opened sessions with a specified domain controller. |
repadmin/showoutcalls DCList | Lists calls that were made by the specified server to other servers but that have not yet been answered. |
repadmin /showrepl DCList | Lists the replication partners for each directory partition on the specified domain controller. |
repadmin /showtrust DCList | Lists all domains trusted by a specified domain. |
The Replication Monitor (ReplMon) is a graphical utility that can perform many of the same tasks as the Replication Administrator. Once you've installed the Support Tools, the easiest way to start the Replication Monitor is to type replmon at a command prompt.
After you start the Replication Monitor, you must add the domain controllers that you want to monitor. You do this by right-clicking the Monitored Servers node in the console tree and selecting Add Monitored Server. In the Add Monitored Server Wizard, access the default option to Add The Server Explicitly By Name, and then click Next. On the Add Server To Monitor page, type the name of the domain controller you want to monitor, and then click Finish. The domain controller will then be added to the Replication Monitor.
As shown in Figure 39-12, each directory partition maintained by the server is listed. If you right-click a partition, you have the option of synchronizing the partition with all other domain controllers or showing change notifications to replication partners.
If you right-click the domain controller node in the console tree, you can perform many standard replication monitoring tasks. These tasks include the following:
Checking the replication topology
Synchronizing all directory partitions with all other domain controllers
Generating a status report
Showing the domain controllers in the current domain
Showing the replication topology
Showing the GPO status
Showing current performance data for the server
Showing a list of all the global catalog servers in the forest
Showing the bridgehead servers in the site or in the forest
Showing trust relationships
Showing attribute metadata for Active Directory objects
Viewing replication errors for all domain controllers is another important task that you can perform in Replication Monitor. To do this, click the Action menu, point to Domain, and then select Search Domain Controllers For Replication Errors.