I recently experienced some issues at a site with DFS, there was a suspicion that DFS replication was periodically flooding the WAN network links. While it is possible to throttle the bandwidth used for replication, I needed a way to get some good data over time regarding the DFS file backlogs as we experimented with different bandwidth settings. I cobbled together the script below but haven’t actually implemented it as a PRTG sensor yet. I thought I would share it anyway and will update this post when I finally get around to finishing the task.
The script enumerates the individual replication connections across all Replication Groups and outputs the count of backlogged files for each. It is designed to work in an environment with only one Folder per Replication Group.