Run Replication Auditor

Tag: ReplicationAudit

The ReplicationAudit action, along with the applicable nested SetParam child actions, lets you automate the Replication Auditor tool.


image2022-8-22_16-24-8.png

SetParam Options

Field Name

Compatible Field Values

Value Description

SelectRepServer

User definable

Any string to define server name or IP address

ModifiedAfter

User definable

Date or Date/Time in compatible YYYY-MM-DDThh:mm:ss24 hr format

Sub Actions

Tag: RunAudit

The sub action RunAudit emulates clicking the 'Audit' button in the Replication Auditor; it is a mandatory action to carry out the audit proposed in the SetParam options.

Tag Attributes

Attributes

Attribute Value

Value Description

Select

Differences

All

The audit mode - Not Required - default is 'Differences'


Reminder: A MySelection action script block can be nested within this action block to add selections to a virtual My Selection folder.

Example Scripts

XML
<ReplicationAudit>
	<Setparam Field="SelectRepServer" Value="192.168.0.2"/>
	<SetParam Field="ModifiedAfter" Value="2012-10-17T20:00:00"/>
</ReplicationAudit>


XML
<ytriaAutomation>
	<Load Server="ACME01/ACME">
		<Load Database="dbtestrepl\Helptest.nsf" Select="True"/>
	</Load>
	<ReplicationAudit>
		<Setparam Field="SelectRepServer" Value="ACME02/ACME"/>
		<SetParam Field="ModifiedAfter" Value="2015-07-25T10:00:00"/>
		<RunAudit Select="All"/>
		<Select Lines="All"/>
			<Export>
				<SetParam field="FilePath" value="D:\scanEZ-ReplicaAudit.html"/>
				<SetParam field="ExportType" value="HTML"/>
				<SetParam field="SelectedRowsOnly" value="True"/>
			</Export>
	</ReplicationAudit>
</ytriaAutomation>

In the script above, the action ReplicationAudit and the specified SetParam options will set the Replication Auditor tool to conduct an audit of the replica of the database 'dbtestrepl\Helptest.nsf' located on server ACME02/ACME and will find all documents that were modified after 10:00:00 PM on July, 25 2015. The action RunAudit will launch the audit itself. The results of this audit will be exported from the Replication Auditor grid to an HTML file. The Replication Auditor tool dialog will close.