Veritas-bu

[Veritas-bu] backup_exit_notify script question

2006-05-19 12:35:52
Subject: [Veritas-bu] backup_exit_notify script question
From: GPero AT downeysavings DOT com (Pero, Greg)
Date: Fri, 19 May 2006 09:35:52 -0700
This is a multi-part message in MIME format.

------_=_NextPart_001_01C67B62.4B6526E2
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Mark -=20

=20

Thanks for the response.  Not sure I follow with the STREAM_COUNT
variable .... Are you pulling this from outside backup_exit_notify?   My
understanding is the STREAM variable that gets passed to
Backup_Exit_Notify is the same for all jobs in that stream - is this not
correct?  =20

=20

Greg

=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

________________________________

From: Mark.Donaldson AT cexp DOT com [mailto:Mark.Donaldson AT cexp DOT com]=20
Sent: Thursday, May 18, 2006 12:07 PM
To: Pero, Greg; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] backup_exit_notify script question

=20

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

=20

________________________________

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

=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.



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_01C67B62.4B6526E2
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.emailstyle17
        {font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple><FONT COLOR=3DBLACK>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Mark &#8211; </span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks for the response.&nbsp; Not =
sure I
follow with the STREAM_COUNT variable &#8230;. Are you pulling this from
outside backup_exit_notify?&nbsp;&nbsp; My understanding is the STREAM =
variable
that gets passed to Backup_Exit_Notify is the same for all jobs in that =
stream &#8211;
is this not correct?&nbsp;&nbsp; </span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Greg</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Greg Pero</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>NetSys Systems Engineer =
Senior</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
  10.0pt;font-family:Arial;color:navy'>Downey</span></font><font =
size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'> Savings</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>(949) 509-4488 - =
office</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><a =
href=3D"mailto:7142003420 AT vtext DOT com">7142003420 AT vtext DOT com</a>
- pager/text message</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>(714) 200-3420 - =
cell</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>gpero AT downeysavings DOT 
com</span></font=
></p>

</div>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
Mark.Donaldson AT cexp DOT com [mailto:Mark.Donaldson AT cexp DOT com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, May 18, =
2006 12:07
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Pero, Greg;
veritas-bu AT mailman.eng.auburn DOT edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [Veritas-bu]
backup_exit_notify script question</span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>You can't do this with stream =
number
because there's no guarantee what in&nbsp;order the streams will
complete.&nbsp; Most of us have nasty hacks for this.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>My version has every stream that =
ends
write a line to the same file.&nbsp; 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.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>The line it writes to the file, by =
the
way, is the return code for that stream.&nbsp; The cleanup routine =
checks for
all zeros &amp; sends warnings if any of the streams were non-zero =
exits.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>-M</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font></p>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabIndex=3D-1>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><b><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>
veritas-bu-admin AT mailman.eng.auburn DOT edu =
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]
<b><span style=3D'font-weight:bold'>On Behalf Of </span></b>Pero, =
Greg<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, May 18, =
2006 11:19
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b>
veritas-bu AT mailman.eng.auburn DOT edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Veritas-bu]
backup_exit_notify script question</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>Running Netbackup 5.1 mp4 on W3K =
&#8211;
have backup_exit_notify.cmd configured to send email alerts (based on =
the
status code) via blat to the NB Sys Admin.&nbsp; 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 &#8211; not the client).&nbsp; =
Filtering
out the policy and schedule is straight-forward &#8211; problem =
I&#8217;m
having is the policy spawns multiple jobs and emails get sent when each =
job
completes.&nbsp; I would assume someone has already figured out how to =
do this
using the stream number &#8211; any help would be greatly =
appreciated!</span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>Thanks,</span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>Greg</span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>Greg Pero</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>NetSys Systems Engineer =
Senior</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
  10.0pt;font-family:Arial;color:black'>Downey</span></font><font =
size=3D2
color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:black'> Savings</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>(949) 509-4488 - =
office</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'><a =
href=3D"mailto:7142003420 AT vtext DOT com">7142003420 AT vtext DOT com</a>
- pager/text message</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>(714) 200-3420 - =
cell</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:black'>gpero AT downeysavings DOT 
com</span></fon=
t></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:black'>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.&nbsp; If you received =
this
message by mistake, please notify the sender by reply e-mail and delete =
the
message and attachments.</span></font></p>

</div>

<BR><BR><P class=3DMsoNormal>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.<SPAN =
style=3D"mso-spacerun: yes">&nbsp; </SPAN>If you received this message =
by mistake, please notify the sender by reply e-mail and delete the =
message and attachments.</P></body>

</html>

------_=_NextPart_001_01C67B62.4B6526E2--