07-15-2009 01:30 AM
Solved! Go to Solution.
07-15-2009 03:36 AM
07-15-2009 01:40 AM
07-15-2009 03:36 AM
07-15-2009 11:08 AM
For best results, make sure the script and the commands issued by the script don't produce any output to the screen (stdout) when you run them. Obviously, you'll want to fix the script to do this after you're done troubleshooting it from the shell prompt or command line. It's quite hard to troubleshoot a script that produces no output. :)
A best practice for the bpstart_notify and bpend_notify scripts is to hard-code an exit value of 0 so that NetBackup knows that the script completed successfully. A Unix/Linux client can do this by putting the line "exit 0" (without the quotes) at the end of the script. A Windows client can do this by putting the line "@echo 0 > %6" (without the quotes, note that there is no space between % and 6 or between the @ and "echo"). The %6 in that line is a parameter that NetBackup passes to the script and is the name of a file that NetBackup checks to see if the script completed successfully. If the file exists and contains the character "0", NetBackup assumes that the bpstart_notify.bat script completed successfully and it proceeds with the backup. This is vaguely documented in the NetBackup 6.5 System Administrator's Guide for Windows, Volume 2 on page 73.
07-17-2009 12:27 AM