The Storage Team Blog about file services and storage features in Windows Server, Windows XP, Windows Vista and Windows 7.
A request we’ve received consistently from our customers is – How do I know what DFS Replication is currently doing on my server? In Windows Server 2008 R2, we have attempted to provide a way for administrators to better understand the state of replication on their servers.
This feature is available by virtue of a new command line switch for the dfsrdiag.exe diagnostic tool. The ‘ReplicationState’ (or ‘ReplState’) command line switch enables an administrator to query the DFS Replication service and retrieve information about the status of replication activity on that server.
This command line switch can be executed against servers running Windows Server 2008 R2 only. The output of this command line switch consists of a list of updates that are currently being serviced by the replication service on all inbound and outbound replication connections. Since this command line switch provides a point in time snapshot of replication activity on a server, it is possible to see whether replication is making any progress by comparing the output of this command obtained at different points in time.
We can better understand how to use this command for monitoring purposes with a sample setup as described below.
The setup
Consider a replication group called ‘ContosoPublication’. The folder ‘ContosoPub’ is replicated between two servers (CONTOSO-HUB and CONTOSO-BRANCH) in this replication group. Typically, the administrator publishes data on the hub server (CONTOSO-HUB) and this data is replicated to the branch office server (CONTOSO-BRANCH) using the DFS Replication service.
An administrator may want to monitor the state of replication on either of the servers to better understand what the DFS Replication service is currently up to. The following sections explain how to use the new ‘ReplicationState’ command line switch for the dfsrdiag.exe diagnostic tool for this purpose.
Monitoring replication on the branch office server
In order to monitor the current replication state of the DFS replication service on these servers, the command ‘dfsrdiag.exe ReplicationState’ can be used. The /member (or /mem) option can be used along with the ‘ReplicationState’ command line switch to specify the server against which this command should be run. In this example, I’ve dumped a few files from the ‘Windows\System32’ directory into the replicated folder.
dfsrdiag ReplicationState /member:CONTOSO-BRANCH
Number of updates = (Updates being processed + Updates scheduled)
Monitoring replication on the hub server
The same command line switch can be executed against the DFS Replication service on the hub server (“dfsrdiag.exe ReplicationState /member:CONTOSO-HUB”) in order to monitor the state of the hub server.
-------
Mahesh Unnikrishnan
The Windows Server 2008 R2 Beta is now available. If you’re participating in the beta program or are
What's in it for Windows Server 2008? is there any solution for monitoring what's going on now in the DFS replication function....
Bst Regards / Nicklas
Hello, do you know if are there something like this in Windows 2003 Std Server ? This utility is very good !!
Today, I only look in my DFSR logs when we have some problem but this is not so "active"; the better is see errors in the moment they are occurring.
Greatings
MGaleti
Nicklas, on Windows Server 2003 R2, you can use the 'dfsrdiag.exe Backlog' command to get an idea of what files are currently backlogged/pending replication on a member server.
The 'ReplicationState' command line option requires some support from the DFS Replication service itself (especially the ability to snapshot current replication state). Therefore, this functionality is not available on earlier versions of Windows Server (Windows Server 2003 R2 and Windows Server 2008).
Thanks for the kind words - we're glad you like this feature. This command is good to get a snapshot of the current replication activity - it doesnt really surface errors in replication. If you're looking for active monitoring of the DFS Replication service, I'd suggest taking a look at System Center Operations Manager.
We have a DFS Replication management pack - this keeps track of the error and warning events logged by DFS-R on each of the servers in the replication group. It also contains rules which tell the management pack when certain error conditions have been auto-corrected etc.
The management pack is currently in beta and is available via connect.microsoft.com. If you're interested, please drop us a line using the 'EMAIL' link at the top of this page, and I'll send you information about how to subscribe to the beta program.
Thanks,
Mahesh
Do we have any update for 2003 R2 as well..??
Yeah what about 2003 R2???????????????
I have been searching my Windows 2003 R2 install for the dfsrdiag.exe command to no avail. Where can I find it? Also, is there a way to tell if a system is using FRS or DFS replication?