Veritas-bu

[Veritas-bu] backup_exit_notify script question

2006-05-18 15:07:09
Subject: [Veritas-bu] backup_exit_notify script question
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Thu, 18 May 2006 13:07:09 -0600
This is a multi-part message in MIME format.

------_=_NextPart_001_01C67AAE.4344D304
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

You can't do this with stream number because there's no guarantee what
in order the streams will complete.  Most of us have nasty hacks for
this.
=20
My version has every stream that ends write a line to the same file.
Then it checks the size of the file, if the number of lines matches the
STREAM_COUNT variable, then I assume its the last stream to exit and it
runs the cleanup routine.
=20
The line it writes to the file, by the way, is the return code for that
stream.  The cleanup routine checks for all zeros & sends warnings if
any of the streams were non-zero exits.
=20
-M

________________________________

From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Pero, Greg
Sent: Thursday, May 18, 2006 11:19 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] backup_exit_notify script question



Running Netbackup 5.1 mp4 on W3K - have backup_exit_notify.cmd
configured to send email alerts (based on the status code) via blat to
the NB Sys Admin.  I need to figure out a way to send a single email to
a user after a specific scheduled policy has completed (the job runs
from the master server - not the client).  Filtering out the policy and
schedule is straight-forward - problem I'm having is the policy spawns
multiple jobs and emails get sent when each job completes.  I would
assume someone has already figured out how to do this using the stream
number - any help would be greatly appreciated!

=20

Thanks,

=20

Greg

=20

=20

=20

Greg Pero

NetSys Systems Engineer Senior

Downey Savings

(949) 509-4488 - office

7142003420 AT vtext DOT com - pager/text message

(714) 200-3420 - cell

gpero AT downeysavings DOT com

=20



This message and any attachments are for the intended recipient(s) only
and may contain privileged, confidential and/or proprietary information
about Downey Savings or its customers, which Downey Savings does not
intend to disclose to the public.  If you received this message by
mistake, please notify the sender by reply e-mail and delete the message
and attachments.


------_=_NextPart_001_01C67AAE.4344D304
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>You can't do this with stream number because =
there's no=20
guarantee what in&nbsp;order the streams will complete.&nbsp; Most of us =
have=20
nasty hacks for this.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>My version has every stream that ends write a =
line to the=20
same file.&nbsp; Then it checks the size of the file, if the number of =
lines=20
matches the STREAM_COUNT variable, then I assume its the last stream to =
exit and=20
it runs the cleanup routine.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>The line it writes to the file, by the way, is =
the return=20
code for that stream.&nbsp; The cleanup routine checks for all zeros =
&amp; sends=20
warnings if any of the streams were non-zero exits.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D730490419-18052006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>-M</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> =
veritas-bu-admin AT mailman.eng.auburn DOT edu=20
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of =
</B>Pero,=20
Greg<BR><B>Sent:</B> Thursday, May 18, 2006 11:19 AM<BR><B>To:</B>=20
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu]=20
backup_exit_notify script question<BR></FONT><BR></DIV>
<DIV></DIV><FONT color=3Dblack>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Running Netbackup 5.1 mp4 =
on W3K &#8211;=20
have backup_exit_notify.cmd configured to send email alerts (based on =
the status=20
code) via blat to the NB Sys Admin.&nbsp; I need to figure out a way to =
send a=20
single email to a user after a specific scheduled policy has completed =
(the job=20
runs from the master server &#8211; not the client).&nbsp; Filtering out =
the policy=20
and schedule is straight-forward &#8211; problem I&#8217;m having is the =
policy spawns=20
multiple jobs and emails get sent when each job completes.&nbsp; I would =
assume=20
someone has already figured out how to do this using the stream number =
&#8211; any=20
help would be greatly appreciated!</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks,</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Greg</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Greg =
Pero</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">NetSys Systems Engineer=20
Senior</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Downey</SPAN></FONT><FONT =
face=3DArial=20
size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">=20
Savings</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">(949) 509-4488 -=20
office</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><A=20
href=3D"mailto:7142003420 AT vtext DOT com">7142003420 AT vtext DOT com</A> - =
pager/text=20
message</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">(714) 200-3420 -=20
cell</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">gpero AT downeysavings DOT com</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV><BR><BR>
<P class=3DMsoNormal>This message and any attachments are for the =
intended=20
recipient(s) only and may contain privileged, confidential and/or =
proprietary=20
information about Downey Savings or its customers, which Downey Savings =
does not=20
intend to disclose to the public.<SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
</SPAN>If you received this message by mistake, please notify the sender =
by=20
reply e-mail and delete the message and =
attachments.</P></FONT></BODY></HTML>

------_=_NextPart_001_01C67AAE.4344D304--