08-08-2011 08:59 AM
I am able to receive every other email notifications:
Code0(backup succeeded), Code1(backup partially successful), Code96(failed, unable to allocate new media), Code150(failed, terminated by administrator)
However I never able to get "backup jobs start/begin" notification, what am I missing?..
I am using nbmail.cmd's method to get the above alerts, please advise.
08-10-2011 01:51 AM
Hi,
NBMAIL.CMD only reports on backup status i.e. when it has completed. If you'd like a mail to be sent to you when it starts you can create bpstart_notify scripts on the client. These scripts are executed when bpbkar start i.e. when a backup starts. NetBackup passes the following to the script. You can install blat on the client if you want it to mail you and push these parameters into your output.
08-10-2011 08:29 AM
Are these enough in the bpstart_notify.cmd ?
Do I need to put a ":MAIL" at the end? Also do I need to modify "client send mail" in console?
if "%4" == "FULL" goto FULL
if "%4" == "CINC" goto CINC
if "%4" == "" goto FAIL
@REM print a generic message since backup is neither full, nor cumulative incremental
echo backup/restore started on %1 using policy %2 with schedule %3 and status %5, bpres = %6 >> "C:\Program Files\Veritas\NetBackup\bin\BP_RES.txt"
@echo 0 >> %6
GOTO :EOF
@REM exit 0
:FULL
echo full backup started on %1 using policy %2 with schedule %3 and status %5, bpres = %6 >> "C:\Program Files\Veritas\NetBackup\bin\BP_RES.txt"
echo 0 >> %6
GOTO :EOF
@REM exit 0
:CINC
@echo cumulative incremental backup started on %1 using policy %2 with schedule %3 and status %5, bpres = %6 >> "C:\Program Files\Veritas\NetBackup\bin\BP_RES.txt"
@echo 0 >> %6
GOTO :EOF
@REM exit 0
:FAIL
@REM no schedule type information was sent. A failure has occured. Write status 1 to results files.
@echo 1 >> %6
GOTO :EOF
@REM exit 0