[Veritas-bu] Email people when a job completes or fails
2002-04-26 08:53:41
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1ED21.644F0B10
Content-Type: text/plain;
charset="iso-8859-1"
His problem, though, was twofold. One, he has an NT server. Two, he wants
to make different classes and different return codes to different places, I
took it for a matrix-like response table. The latter is going to force him
to code regardless of server type.
-M
-----Original Message-----
From: David Markham [mailto:dave.markham AT icl DOT net]
Sent: Friday, April 26, 2002 2:50 AM
To: 'Donaldson, Mark'; 'WEAVER, Simon'
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Email people when a job completes or fails
Nah this can be done easily, if you are runnin unix.
I do soemthing similar in the /usr/openv/netbackup/bin/backup_exit_notify.
Affter its written the log file, and before it says cat $OUTF | mailx -s
"subjec" test AT somewhere DOT com <mailto:test AT somewhere DOT com>
You coulde write a simple if statment.
If [ $5 != 0 ]
then
cat $OUTF |mailx -s "Anything but status 0" mailme AT somwhere DOT com
<mailto:mailme AT somwhere DOT com> andme AT somewhereelse DOT com
<mailto:andme AT somewhereelse DOT com>
else
cat $OUTF |mailx -s "Status 0 backups" mainman AT somewhere DOT com
<mailto:mainman AT somewhere DOT com>
fi
something like that
Dave
-----Original Message-----
From: Donaldson, Mark [mailto:Mark.Donaldson AT experianems DOT com]
Sent: 23 April 2002 17:27
To: 'WEAVER, Simon'; 'dave.markham AT icl DOT net'
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Email people when a job completes or fails
You'll probably need two things.
1. A programming language. Even NB Datacenter on UNIX can't send e-mails
multiple places based on class, error code, etc. That has to be done
programatically. Consider PERL - it's free for NT. Call it via your
backup_notify or similar end-backup-type of script.
2. a command-line mailer. Unless PERL has one built in (??) then blat is
probably your best supported option on this.
Good Luck,
Mark
------_=_NextPart_001_01C1ED21.644F0B10
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Veritas-bu] Email people when a job completes or fails</TITLE>
<META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=096274812-26042002><FONT face=Arial color=#0000ff size=2>His
problem, though, was twofold. One, he has an NT server. Two,
he
wants to make different classes and different return codes to different places,
I took it for a matrix-like response table. The latter is going to force
him to code regardless of server type.</FONT></SPAN></DIV>
<DIV><SPAN class=096274812-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=096274812-26042002><FONT
face=Arial color=#0000ff>-M </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=096274812-26042002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=096274812-26042002> </SPAN>-----Original
Message-----<BR><B>From:</B>
David Markham [mailto:dave.markham AT icl DOT net]<BR><B>Sent:</B> Friday,
April 26,
2002 2:50 AM<BR><B>To:</B> 'Donaldson, Mark'; 'WEAVER, Simon'<BR><B>Cc:</B>
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu]
Email
people when a job completes or fails<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff size=2>Nah
this can be done easily, if you are runnin unix.</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff size=2>I
do
soemthing similar in the
/usr/openv/netbackup/bin/backup_exit_notify.</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2>Affter its written the log file, and before it says cat $OUTF |
mailx -s "subjec" <A href="mailto:test AT somewhere DOT com">test AT
somewhere DOT com</A>
</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff size=2>You
coulde write a simple if statment.</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff size=2>If
[
$5 != 0 ]</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2>then</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002> <FONT face=Arial
color=#0000ff size=2>cat $OUTF |mailx -s "Anything but status 0" <A
href="mailto:mailme AT somwhere DOT com">mailme AT somwhere DOT com</A> <A
href="mailto:andme AT somewhereelse DOT com">andme AT somewhereelse DOT
com</A></FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2>else</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2> cat $OUTF |mailx -s "Status 0 backups" <A
href="mailto:mainman AT somewhere DOT com">mainman AT somewhere DOT
com</A></FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2>fi</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2>something like that</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2>Dave</FONT></SPAN></DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=127394708-26042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Donaldson, Mark
[mailto:Mark.Donaldson AT experianems DOT com]<BR><B>Sent:</B> 23 April 2002
17:27<BR><B>To:</B> 'WEAVER, Simon'; 'dave.markham AT icl DOT
net'<BR><B>Cc:</B>
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> RE: [Veritas-bu]
Email
people when a job completes or fails<BR><BR></FONT></DIV>
<P><FONT size=2>You'll probably need two things.</FONT> </P>
<P><FONT size=2>1. A programming language. Even NB Datacenter on UNIX
can't send e-mails multiple places based on class, error code, etc.
That
has to be done programatically. Consider PERL - it's free for NT.
Call it via your backup_notify or similar end-backup-type of
script.</FONT></P>
<P><FONT size=2>2. a command-line mailer. Unless PERL has one built in
(??) then blat is probably your best supported option on this.</FONT> </P>
<P><FONT size=2>Good Luck,</FONT> <BR><FONT size=2>Mark</FONT> </P>
<P> </P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C1ED21.644F0B10--
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] Email people when a job completes or fails, (continued)
- [Veritas-bu] Email people when a job completes or fails, WEAVER, Simon
- [Veritas-bu] Email people when a job completes or fails, WEAVER, Simon
- [Veritas-bu] Email people when a job completes or fails, Osiewicz Brett R
- [Veritas-bu] Email people when a job completes or fails, Donaldson, Mark
- [Veritas-bu] Email people when a job completes or fails, scott.kendall AT abbott DOT com
- [Veritas-bu] Email people when a job completes or fails, Grønås Bengt
- [Veritas-bu] Email people when a job completes or fails, WEAVER, Simon
- [Veritas-bu] Email people when a job completes or fails,
Donaldson, Mark <=
|
|
|