HP B6960-90078 User Manual
Page 283

Backup
Pre- and Post-Exec Commands
Chapter 5
253
RESTARTED Set to 1 if this is a restarted backup session, otherwise
set to 0. The
post-exec
can use this variable to
prevent an additional restart in the case that SMEXIT
equals 0.
SESSIONID
Is used to identify a finished session and is recorded in
the database. You cannot use this to preview a session
(use SESSIONKEY).
SESSIONKEY Is used to identify a running session. You may, for
example, abort a backup session before it is started if
something is wrong.
SMEXIT
The exit code of the Session Manager is the same as the
exit code of the
omnib
command. You can only use this
variable with the
post-exec
command. Agents can
refer to Disk Agents, Media Agents, Application
Agents, Symmetrix Agents, and so on.
Key Points
✓ The
pre-
and
post-exec
commands for a backup specification have
to be executables or batch files. It is important to specify a filename
extension on Windows.
✓ The
pre-
and
post-exec
commands can be located in any directory
on the system where the Disk Agent is running. If they are located in
a directory other than
a full
pathname must be specified.
Table 5-3
SMEXIT VALUES
Value
Description
0
All files were successfully backed up.
10
All Agents completed successfully, but not all files
were saved.
11
One or more Agents failed or there was a database
error.
12
None of the Agents completed the operation.
13
Session was aborted.