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

Example
In this example, the extended command is used to create a backup ID file that contains the backup
ID 0000000001:
EX_DRM_BACKUPID_SET operation01 -backup_id 0000000001
EX_DRM_CG_DEF_CHECK (Checks the contents of a copy-group list file)
Formats
EX_DRM_CG_DEF_CHECK -cg_file copy-group-list-file-name
Description
This extended command is used to check the contents of a copy-group list file. The command first
checks to see if the file specified in the argument exists. If it does, the command then checks all the
copy groups set in the copy-group list file to make sure that:
One copy group name is coded on each line.
There is no duplication of copy group names in the file.
The copy group names in the file are included in the list of copy groups displayed by the drmcgctl
command.
Copy group names are case sensitive.
Prerequisites
The prerequisite for executing this extended command is as follows:
The extended command must be executed on the machine that contains the copy-group list file to
be checked.
Arguments
-cg_file copy-group-list-file-name
Use an absolute path to specify the copy-group list file to be checked.
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.
An error is detected in the copy-group list file.
A command executed inside the extended command encounters an error.
Extended commands26