3.43 ReplSysVol

Use this Knowledge Script to monitor SysVol folder replication. This script raises event if a stale Active Directory replication is found.

Each time this script runs, it creates a text file under the SysVol directory on the target computer. It changes the file contents at consecutive job iterations and checks whether the changes are successfully replicated on replication partners. If the changes are not replicated successfully, the file content on the replication partners is considered stale.

This script can also validate the file size and the file content for all files under the SysVol folder on the replication partners. If you enable the Discover all files that do not match file content? parameter, all files are validated for size and content.

NOTE:Validating file contents can significantly increase network traffic volume. The Perform file content validation? parameter is disabled by default. To perform this validation, this script first does some checking, and if the file sizes of the files being compared match, which is expected when the File Replication Service (FRS) replication is occurring normally, the files are read in entirety to generate a cyclic redundancy check (CRC). Assuming FRS replication is occurring and all files are in sync, significant network traffic will probably be generated.

In some cases, the impact will be minor; the total SysVol file size for a given domain may not be very large, your network may be configured such that it can easily handle the extra traffic, or you may have set the Site option parameter to Intrasite, which disables off-site network traffic for this job. In all cases, however, you should carefully assess the likely network traffic cost of enabling file content validation before enabling this option in a production environment.

3.43.1 Resource Objects

Active Directory domain controller

3.43.2 Default Schedule

The default interval for this script is Every 30 minutes.

3.43.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

General Settings

Raise event if job fails

Event severity when job fails

Set the severity level, from 1 to 40, to indicate the importance of an event in which the ReplSysVol job fails. The default is 35.

Monitor SysVol replication

Site option

Select the type of replication monitoring you want the script to perform: Intrasite, Intersite, or Both. The default is Both.

File comparison and validation

Compare files on replication partners?

Select Yes to compare SysVol folders. If enabled, returns the number and names of files that are not present on the replication partners. The default is unselected.

Perform file size comparison?

Select Yes to compare the SysVol file sizes on the monitored computers. If enabled, returns the number and names of files whose size is not consistent on the replication partners. The default is unselected.

Perform file content validation?

Select Yes to compare the contents of monitored SysVol folders. If enabled, returns the number and names of files whose content is not consistent on the replication partners. The default is unselected.

Warning Enabling this option can significantly increase network traffic in the monitored domains. See the Warning in the Knowledge Script description.

Discover all files that do not match file content?

Select Yes to perform validation of file size and content for all SysVol files on the replication partners. The default is unselected.

Event Notification

Raise event if stale replication found?

Select Yes to raise an event if replication fails and the file contents are stale. The default is Yes.

Event severity when replication fails

Set the severity level, from 1 to 40, to indicate the importance of an event in which replication fails and the file contents are stale. The default is 5.

Data Collection

Collect data for SysVol replication status?

Select Yes to collect data for charts and reports. If enabled, data collection returns:

  • 1 -- SysVol replication status is up, or

  • 0 -- SysVol replication status is down

The default is unselected.