NetBase for MPE Reference Guide

Disaster Recovery Procedures for NetBase Shadowing Environments
12-11
The next step is to edit the above file and change the necessary directory entries for the system to
think it is the shadow system. In the above example, two lines need to be changed:
DIR NBD.DATA.NETBASE
File Banner.Data.NetBase,Daffy,Bugs
The DIR command needs to be changed to a BUILD command so that we will create a new directory.
We do not want to modify the existing directory. Change the FILE statement to reflect that BUGS
will be the master and DAFFY will be the shadow. After making the changes the new file looks like:
:PRINT filename
BUILD DRDIR.DATA.NETBASE <<This is the new directory name>>
FILE BANNER.DATA.NETBASE,BUGS,DAFFY <<Changed FILE entry>>
PROGRAM @.PUB.BRADMARK;NONB
PROGRAM NBPOST.NB.NETBASE;NONB
PROGRAM @.NFSPROG.NETBASE;NONB
PROGRAM NBADAGER.PUB.NETBASE;NONB
PROGRAM NBGENRL.PUB.NETBASE;NONB
PROGRAM NBINST.PUB.NETBASE;NONB
PROGRAM @.PUB.REGO;NONB
PROGRAM VTSERVER.NET.SYS;NONB
PROGRAM CI.PUB.SYS;NONB
PROGRAM DBRESTOR.PUB.SYS;NONB
PROGRAM DBSCHEMA.PUB.SYS;NONB
PROGRAM DBSTORE.PUB.SYS;NONB
PROGRAM DBUTIL.PUB.SYS;NONB
PROGRAM @.@.VESOFT;NONB
EXIT
Now that the ASCII file contains the correct entries, use NBDIR to create this alternate directory.
:RUN NBDIR.PUB.NETBASE;STDIN=filename
At this point, NBDIR will read through the file and create a directory called DRDIR.DATA.NETBASE.
This directory can now be used at the time of a failover. Remember that creating a directory using
NBDIR does not make it the activedirectory on the system. The CHGDIR command in NBCTRL
must be used for that.