HP StorageWorks P9000 Command View Advanced Edition Suite Software 7.0 Mainframe Agent Installation and Configuration Guide (TB581-96014, November 2010)

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.
Information could not 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 could not 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 dictionary map files storage directory.
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 as the FTP server, ftp_user as the FTP user,
and ftp_passwd as the FTP password:
EX_DRM_FTP_GET operation01 -server serverA -user ftp_user -password ftp_passwd
EX_DRM_FTP_PUT (Transfers the 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 must be executed on the FTP client.
The backup information file that this extended command will transmit have already been generated
by executing the EX_DRM_DB_EXPORT extended command.
Extended commands30