Microsoft KB Archive/318340

= HOW TO: Verify That Active Directory Partitions Are Replicated Properly on All Domains in Windows 2000 =

Article ID: 318340

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q318340





IN THIS TASK
SUMMARY
 * Requirements
 * To Use Dsastat.exe to Verify Replication
 * Example

REFERENCES



SUMMARY
This step-by-step article describes how to use the Dsastat.exe command-line tool to verify that Active Directory partitions are being replicated to the appropriate domains. The Dsastat tool compares and detects differences between directory partitions on domain controllers. The tool retrieves capacity statistics such as megabytes per server, objects per server, and megabytes per object class. Then, the tool compares the attributes of replicated objects. You can use the tool to compare two directory trees across replicas in the same domain or, for a global catalog, across different domains. You can use this tool to monitor the replication status at a &quot;higher&quot; level than monitoring detailed transactions. This tool is helpful, along with the other replication monitoring tools (Repadmin and Replmon), in ensuring that domain controllers are current with one another. For more information about Repadmin and Replmon, see the &quot;References&quot; section in this article.

back to the top

Requirements

 * The Windows 2000 Support Tools must be installed on the server.
 * You must be logged on with administrator permissions.

back to the top

To Use Dsastat.exe to Verify Replication

 * 1) Click Start, and then click Run.
 * 2) In the Open box, type cmd, and then click OK.
 * 3) At the command prompt, type dsastat -s: ;, and then press ENTER. A report compares the directory information for both servers.

back to the top

Example
For example, to compare all of the users in the Marketing organizational unit in the Adatum.com domain with those in another directory partition, use the following command:

dsastat -s:adatumS1;adatumS2 -b:OU=Marketing,DC=adatum,DC=com -gcattrs:all -sort:true -t:false -p:16 -filter:&quot;(&(objectclass=user)(!objectClass=computer))&quot;

With this command, you can determine whether both domain controllers agreed on the contents of the &quot;OU=Marketing,DC=Adatum,DC=com&quot; subtree. The tool detects objects that are contained in one subtree but not the other (for example, if a creation or deletion has not been replicated). The tool also detects differences in the values on objects that do exist on both domain controllers.

This example specifies a base search path on a subtree in the domain. In this case, the organizational unit name is &quot;Marketing.&quot; The filter specifies that the comparison is concerned only with user objects, not the computer objects.

back to the top

