HP XP7 Replication Manager Application Agent CLI User Guide (TK981-96015, May 2014)

Script environment variables
The table below shows the Application Agent script environment variables that can 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.
Table 71 Script environment variables
RemarksDescriptionEnvironment variable
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.
Backup ID of local server
DRMENV_L_BACKUPID
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 -s and -auto_import options
are specified in the backup command.
Backup ID of backup server
DRMENV_R_BACKUPID
Value specified for the -comment option
in the backup command
Backup comment
DRMENV_COMMENT
NORMAL: Normal
ERROR: Error
Command execution status
DRMENV_CMD_STAT
Command execution permission
Commands executed in the local server assume the execution permission of the parent command.
Commands executed in the backup server assume the execution command of the user who started
the Protection Manager service.
Commands that can be specified in user pre-processing and user post-processing
The table below lists the commands that can be specified in the user pre-processing section
([PRE_PROC]) and user post-processing section ([POST_PROC]). Only basic commands can be
specified. The commands that can be specified differ for file and database servers and backup servers.
Application Agent CLI User Guide 209