HP XP P9000 Replication Manager Software 7.6.1-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 file specified in the argument does not exist, or the system cannot access the file.
• The system cannot access the database server (when the -db option is specified).
• The system detects an error in the results of the file check.
• The command fails to create a temporary directory.
• The command fails to obtain the name of the directory where dictionary map files are stored.
Examples
• In this example, the extended command is used to check the contents of the operation definition
file C:\Program Files\drm\SCRIPT\conf\_OP0001.dat for a database server:
By specifying an operation ID:
EX_DRM_SQL_DEF_CHECK OP0001 -db
By specifying an operation definition file name:
EX_DRM_SQL_DEF_CHECK -db -f "C:\Program Files\drm\script\conf\_OP0001.dat"
• In this example, the extended command is used to check the contents of the operation definition
file C:\Program Files\drm\SCRIPT\conf\_OP0001.dat for a backup server:
By specifying an operation ID:
EX_DRM_SQL_DEF_CHECK OP0001 -bk
By specifying an operation definition file name:
EX_DRM_SQL_DEF_CHECK -bk -f "C:\Program Files\drm\script\conf\_OP0001.dat"
EX_DRM_SQL_RESTORE (Restores an SQL Server database backup to the primary
volume)
Formats
To restore data by resynchronizing the primary and secondary volumes:
EX_DRM_SQL_RESTORE operation-ID -resync [ -force ] [ -undo ]
[ -nochk_host ]
[ -target database-name | -f database-list-file ]
[ -pf copy-parameter-definition-file]
Extended commands56