HP XP P9000 Replication Manager Software 7.6.0-00 Application Agent CLI Reference Guide

Return Values
0: Normal termination
Any value other than 0: Termination with an error
Conditions Causing an Error
This extended command fails in the following cases:
An invalid option is specified.
The system cannot acquire information from the definition file linked to the operation ID.
A command executed inside the extended command encounters an error.
The command fails to obtain the name of the directory where dictionary map files are stored.
Example
In this example, the command backs up the transaction log for the resource, based on the settings
in the operation definition file operation01:
EX_DRM_SQL_TLOG_BACKUP operation01
EX_DRM_SQLFILE_EXTRACT (Deploys SQL Server metafiles to the folder to be
backed up to a tape device)
Format
EX_DRM_SQLFILE_EXTRACT operation-ID
Description
This extended command deploys the SQL Server metafiles from the temporary directory for extended
commands to the directory indicated below.
On the database server:
The VDI metafile storage directory that was registered with the drmsqlinit command
On the backup server:
directory-specified-for-FTP_HOME_DIR\directory-specified-for-
FTP_SUB_DIR\operation-ID\AP
When this extended command is executed on the backup server, the system first deletes all SQL Server
metafiles from the copy destination folder. The system then copies the SQL Server metafiles from the
copy source folder to the copy destination folder. By deleting old metafiles, this extended command
prevents old metafiles from being backed up to a tape device.
On the database server, all SQL Server metafiles that are generated when the database is backed
up to the secondary volume are protected. Therefore, if this extended command is executed on the
database server, SQL Server metafiles are not deleted.
Prerequisites
The prerequisites for executing this extended command are as follows:
An operation definition file linked to the specified operation ID has been provided.
The backup ID file from which this extended command will acquire information has been generated
by executing the EX_DRM_BACKUPID_SET or EX_DRM_DB_IMPORT extended command.
Application Agent CLI Reference Guide 61