Veritas-bu

[Veritas-bu] backup_exit_notify

2004-06-22 19:56:46
Subject: [Veritas-bu] backup_exit_notify
From: mark_eisenhardt AT stoneybrookfl DOT com (Mark Eisenhardt)
Date: Tue, 22 Jun 2004 19:56:46 -0400
I've always used the bpend_notify script and have had no problems with it.
It's in the goodies directory and you copy it to the Netbackup/bin and
modify it to do the same and it should work for you.

HTH,
Mark Eisenhardt

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Jason 
Helfman
Sent: Tuesday, June 22, 2004 12:07 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] backup_exit_notify

I've modified the end of backup_exit_notify to only notify me of status
other then zero, but I don't believe it is working. Can anyone see
anything with my modifications that would have the script not executing
correctly?

As it is now, other then zero, I am not notified. Before sending this
email, I changed mailx to /bin/mailx.

Would this change anything?

#
# might want to mail this info to someone
#

# NTFLOGS mail to blah AT blah DOT com
if [ "$2" = "job" ]
then
         cat $OUTF |mailx -s "NetBackup exit of $5 for $2" blah AT blah DOT com
fi

# All Jobs other then Status of Zero, send to unix team.
if [ "$5" -ne 0 ]
then
      cat $OUTF | mailx -s "NetBackup exit of $5 for $2" me AT whatever DOT com
else
fi
exit 0
--
Jason G Helfman, Ticketmaster
8800 W. Sunset Blvd.
West Hollywood, CA 90069
213/739-5174 Direct
310/345-1554 Cell
310/360-3300 Main
jason.helfman AT ticketmaster DOT com
GnuPG Fingerprint: A349 3CAA 5085 DC6E C485  7356 13C3 5772 F865 C926
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 6/18/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 6/18/2004



<Prev in Thread] Current Thread [Next in Thread>