HP StorageWorks P9000 Replication Manager Software 7.1 CLI Reference Guide (TB584-96021, May 2011)

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.
Information cannot be acquired from the operation definition file corresponding to the operation
ID.
A connection to the FTP server or file transmission fails.
A command executed inside the extended command encounters an error.
The backup information file to be transferred by this extended command does not exist.
Information cannot be acquired from the host environment settings file.
The storage directory for extended-command temporary files specified in the operation definition
file does not exist on the file server or the database server.
The command fails to obtain the name of the directory where dictionary map files are stored.
Example
In this example, the extended command is used to transfer files from the FTP server to the FTP client,
based on the settings in the operation definition file operation01. The command uses serverA
for the FTP server, ftp_user for the FTP user, and ftp_passwd for the FTP password:
EX_DRM_FTP_GET operation01 -server serverA -user ftp_user -password
ftp_passwd
EX_DRM_FTP_PUT (Transfers a backup information file to the backup server)
Format
EX_DRM_FTP_PUT operation-ID -server FTP-server
-user FTP-user -password FTP-password
Description
The EX_DRM_FTP_PUT command transfers the backup information file corresponding to the operation
ID specified in the arguments from the temporary directory for extended commands on the FTP client
to the temporary directory for extended commands on the FTP server. It deletes old backup information
files stored in the directories of the FTP server before transferring the new file. The command also
transfers the SQL Server metafile (when the backup is of an SQL Server database) at the same time.
Prerequisites
The prerequisites for executing this extended command are as follows:
The operation definition file corresponding to the specified operation ID has been created.
This extended command is executed on the FTP client.
The backup information file that this extended command will transmit has already been generated
by executing the EX_DRM_DB_EXPORT extended command.
The EX_DRM_FS_DEF_CHECK command has been executed to create a directory on the FTP
server that will contain the transferred files.
Extended commands30