RDF System Management Manual

Table Of Contents
Entering RDFCOM Commands
HP NonStop RDF System Management Manual524388-003
8-80
Command Overview
Example
This example shows how to configure an RDF environment to replicate from \LEFT to
\RIGHT, with the ability to reverse replication so it goes from from \RIGHT to \LEFT.
The RDF configuration on \LEFT includes the following (the standard SET/ADD RDF,
EXTRACTOR, RECEIVER, PURGER, IMAGETRAIL and VOLUME configuration
commands are omitted):
INITIALIZE RDF, BACKUPSYSTEM \RIGHT !
SET TRIGGER PROGRAM $SYSTEM.RDF.RDFCOM
SET TRIGGER INFILE $DATA01.RDFCONF.RIGHT
SET TRIGGET OUTFILE $0
SET TRIGGER WAIT
SET TRIGGER CPU 1
SET TRIGGER PRIORITY 150
ADD TRIGGER REVERSE
The RDF configuration on \RIGHT is contained in the file \RIGHT.$DATA01.RDFCONF.
RIGHT (specified in the INFILE). That file includes the following commands (note that
the standard SET/ADD RDF, EXTRACTOR, RECEIVER, PURGER, IMAGETRAIL and
VOLUME configuration commands are omitted):
INITIALIZE RDF, BACKUPSYSTEM \LEFT, INITTIME NOW !
START RDF
Initially, RDF runs from \LEFT to \RIGHT. To reverse replication, you enter the
following command on \LEFT:
STOP RDF, REVERSE
This causes RDF to drain the replication stream up to the current point in time, and
then execute the reverse trigger on \RIGHT (in this case the reverse trigger is
RDFCOM with the input file $DATA01.RDFCONF.RIGHT). RDFCOM reads the input
file, which causes a new RDF environment to be initialized and started from \RIGHT to
\LEFT. Any messages from RDFCOM are reported to $0.
After the RDFCOM process on \LEFT completes, the RDF environment from \LEFT to
\RIGHT shuts down.