cancel
Showing results for 
Search instead for 
Did you mean: 

Backup exit notify

Andrea_Elliott_
Level 3
Hi. I know this subject has been covered, but I can't find exactly what I'm looking for. I want to use backup_exit_notify.cmd to only notify me of jobs other than 0, 1, or 150 in status. I'm on a Windows 2000 server and don't use BLAT.

I went to a class at Veritas (really good class) but I think my notes on the script are wrong. I tried to add the following to the script and it doesn't work:

if $5 > 1 & ! = 150
then nbmail me@work.com


Does anyone have a sample that they can post that shows the proper syntax?

Thanks in advance,

andrea
7 REPLIES 7

Jim_Miller
Level 3
If you don't use blat, what smtp mailer is nbmail.cmd calling?

David_Kies
Level 4
Certified
both conditions must be true is && no space b/w the ! and the =

if $5 >1 && != 150

Andrea_Elliott_
Level 3
My mistake! We are using BLAT - I guess I meant I'm on a Windows platform, not Unix and I'm looking for the right syntax and variables for that.

thanks again!

Stumpr2
Level 6
You might want to review this other thread in this forum
http://forums.veritas.com/discussions/thread.jspa?messageID=4410501䲅

Geoff_Stafford
Level 3
Your syntax is off, in Windows batch the operators are:

Operator Description
EQU equal to
NEQ not equal to
LSS less than
LEQ less than or equal to
GTR greater than
GEQ greater than or equal to



In my script I do something like

if %5 EQU 150 goto :EndMain


if %5 GTR 1 call %NB_MAIL_SCRIPT% me@work.com "Action Required: NetBackup Failure" %OUTF%

David_Kies
Level 4
Certified
Sorry my port version was off, the link Bob has posted was my response to the Win one previously, where I do indeed use the GTR operand.

So many OSs, so little time.................

Andrea_Elliott_
Level 3
Awesome!! That worked Geoff!

Thanks everyone!!

andrea