HP (Hewlett-Packard) B6960-90078 Computer Drive User Manual


 
Backup
Pre- and Post-Exec Commands
Chapter 5260
/opt/omni/lbin/utilns/detach pre_script [arguments...]
You can disable a session’s pre- and post-exec command execution
on the Cell Manager by setting the SmDisableScript global option to
1.
You can disable remote session pre- and post-exec command
execution on any client by adding OB2REXECOFF=1 into the omnirc file
on the specific client.
You can secure the client by specifying which Cell Managers are
allowed to access the client. Only permitted Cell Managers will be
able to execute pre- and post-exec commands on the client. For
more information on securing a client, refer to the HP OpenView
Storage Data Protector Installation and Licensing Guide.
Pre- and Post-Exec Commands for a Specific Backup Object
Pre- and post-exec commands for an object are executed before and
after the backup of the object, respectively. You can specify these
commands for all objects in a backup specification, or for each individual
object. When backing up integrations, for example Oracle, the database
is considered as an object, so the commands are executed before and after
the database backup. These commands are executed on the system
where the Disk Agent is running.
Where to Locate
the Commands
Pre- and post-exec commands for backup objects on UNIX systems are
started by the backup session owner, unless the backup session owner
has the Back up as root permission and the commands are then
started under root.
On UNIX Cell Managers and clients, the exec commands for backup
objects can reside in any directory, and the full pathname must be
specified when defining the backup specification. However, for host
backups the exec commands must reside in the /opt/omni/lbin
directory on HP-UX or in /usr/omni/bin on other UNIX systems. In this
case, only the filename can be specified. The commands have to be
located on the system where the Disk Agent is running.
How to Specify the
Filename or
Pathname
For information on how to specify the commands, refer to the online Help
index keyword “pre- and post-exec commands for backup objects”.