Veritas-bu

[Veritas-bu] Email people when a job completes or fails

2002-04-22 06:35:55
Subject: [Veritas-bu] Email people when a job completes or fails
From: dave.markham AT icl DOT net (David Markham)
Date: Mon, 22 Apr 2002 11:35:55 +0100
What i do is use /usr/openv/netbackup/bin/backup_exit_notify

Theres an option in it to send mail when a job finished.

I also appened bperrcode onto this to give me info on the status code of
exit:- see below


echo `date` "-----------------------------" >> $OUTF
echo `date` "       CLIENT:  $1" >> $OUTF
echo `date` "        CLASS:  $2" >> $OUTF
echo `date` "     SCHEDULE:  $3" >> $OUTF
echo `date` "SCHEDULE TYPE:  $4" >> $OUTF
echo `date` "       STATUS:  $5" >> $OUTF
echo `date` "       STREAM:  $6" >> $OUTF
echo `date` "       STATUS:  $5" >> $OUTF
echo `date` "       STREAM:  $6" >> $OUTF
echo `date` "-----------------------------" >> $OUTF

/usr/openv/netbackup/bin/goodies/bperrcode $5 >> $OUTF
#
# might want to mail this info to someone
#
cat $OUTF | mailx -s "NetBackup backup exit $1" someone AT somewhere DOT com






-----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 WEAVER,
Simon
Sent: 22 April 2002 10:22
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] Email people when a job completes or fails


Hello everyone.
I see within the Netbackup main window, that you can use an option to send
Emails. How can I send an Email when a particular job finishes successfully
or fails badly?

Any ideas or helpful documents would be great!

Thanks

Simon Weaver
NT Domain Administrator
Ext. 5544
Tel: 02392-705544 (Direct Dial)
Simon.Weaver AT Astrium-Space DOT com

...
This email is for the intended addressee only.
If you have received it in error then you must not use, retain, disseminate
or otherwise deal with it.  Please notify the sender by return email.
The views of the author may not necessarily constitute the views of Astrium
Limited.
Nothing in this email shall bind Astrium Limited in any contract or
obligation.
Astrium Limited
Gunnels Wood Road
Stevenage
Hertfordshire
SG1 2AS
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu