NetBackup notify scripts
NetBackup provides scripts or batch files that can collect information and be used to notify administrators of specific events.
All of the NetBackup notify scripts are located in the goodies directory, which contains sample shell scripts to modify. Three volmgr notify scripts are installed in the volmgr goodies directory. The scripts in the goodies directories are not supported but are intended as examples to customize.
The goodies directories are found in the following locations:
On Windows: Install_path\NetBackup\bin\goodies\
Install_path\volmgr\bin\goodies
On UNIX: /usr/openv/netbackup/bin/goodies
/usr/openv/volmgr/bin/goodies
Ensure that others can run the script after modifying. To do so, run chmod ugo+rx script_name, where script_name is the name of the script.
If you use either the bpstart_notify or bpend_notify scripts, do not include any commands that write to stdout. NetBackup sends the output that is written to stdout to the server as part of the backup. The resulting backup can abort with an error message that pertains to block sizes.
Also, ensure that all commands in the scripts are appropriate to the client platform. For example, the -s parameter is invalid for the UNIX mail command on some UNIX platforms. Its use can cause data to be written to stdout or stderr.
Many NetBackup processes set a limit on the number of concurrently open file descriptors that are allowed. That limit is inherited by the notify scripts run by the process. In the rare event that a command invoked by a notify script requires many additional file descriptors, the script must increase the limit appropriately before invoking the command.
The following topics describe the scripts that are active on the primary server and those that are active on the client.
To use the client scripts, first create the script on the client.
Additional comments appear in the scripts.