HP XP P9000 Replication Manager Software 7.6.0-00 User Guide

Select Execute pre/post jobs with Agent User Script and supply the path to a Script File located
on the production server.
TIP:
If you set the Automatically mount during the operation option in the Create Replica Wizard, you
should unmount the volume manually when the restore is complete.
Command line tools
Several command line tools to support tape operations are installed as part of Application Agent.
The tools are located in the following folder:
Application-Agent-installation-directory\DRM\bin\
A subset of the available commands are outlined in the topics that follow. For detailed information
on these and other commands (including the available options), see the HP P9000 Replication Manager
Application Agent CLI Reference Guide.
drmumount command
The drmumount command unmounts a secondary volume. If the target volume has already been
unmounted, the command displays a warning that the target volume has been unmounted, and then
continues processing.
Before executing this command, all the application programs using the secondary volume to be
unmounted must be stopped.
The format of the command is as follows:
drmumount %DRMENV_R_BACKUPID%
where %DRMENV_R_BACKUPID% is an environment variable that automatically determines the ID of
the target volume.
Return values are 0 for normal termination; any other value indicates an error.
drmdbexport command
The drmdbexport command exports the backup information from the backup catalog to a file. You
can use the drmdbimport command to import data into a backup catalog on another server from
a file that contains the exported backup information. The drmdbexport command must be executed
from in the post-processing section of a user script.
The format of the command is as follows:
drmdbexport %DRMENV_R_BACKUPID% -f export-destination-file-name
The arguments are as follows:
%DRMENV_R_BACKUPID%
An environment variable that automatically determines the backup ID used to select the backup
catalog.
-f export-destination-file-name
Use an absolute path name to specify the file to which you want to export the backup information.
Use a maximum of 511 bytes for a file name. If the specified export destination file already exists,
the existing file is overwritten. When specifying on the command line a file name or directory
User Guide 423