User backup script example, Agent script example, Environment variables – HP XP P9000 Command View Advanced Edition Software User Manual
Page 404
Environment variables
The table below shows the Application Agent script environment variables that must be referenced
by commands in the user post-processing section. These script environment variables can be referenced
from the local server and the backup server.
DRMENV_L_BACKUPID
Backup ID of the local server. This environment variable is valid in the following cases:
• The command is being executed in the local server.
• The execution status of the parent command is normal.
DRMENV_R_BACKUPID
Backup ID of the backup server. This environment variable is valid in the following cases:
• The command is being executed in the backup server.
• The execution status of the parent command is normal.
• The Mount the replica volumes option in the Create Replica Wizard is checked.
DRMENV_CMD_STAT
Command execution status:
NORMAL
: Normal
ERROR
: Error
Agent script example
The table below shows the user script that is created for the example.
Table 25 User backup script example
Explanation
Script text
YES
is required.
LOCAL_BACKUP=YES
#Pre-processing section
LOCAL_BACKUP=YES
#Pre-processing section
#None
#Post-processing section
Start of the user post-processing section.
[POST_PROC]
#Tape backup of the secondary volume
[CMD]
CMDLINE=C:\tmp\tapebackup.bat
Execute the next command without waiting for the
command to terminate.
TIMEOUT=NOWAIT
Treat a command return value that is a value other
than 0 as an error.
END_CODE=TERMINATE_NZ
Execute on the remote server.
LOCATION=REMOTE
Managing application replicas
404