Veritas-bu

[Veritas-bu] Notification of Class Completion

2002-06-14 14:45:38
Subject: [Veritas-bu] Notification of Class Completion
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Fri, 14 Jun 2002 12:45:38 -0600
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_01C213D3.AD445900
Content-Type: text/plain;
        charset="iso-8859-1"

Not in a simple way, but there is a "STREAM_COUNT" environmental variable
that is passed to both the client's bpstart_notify & bpend_notify scripts.
Each *_notify script can be named with class and schedule information, ie:
bpend_notify.classname.
 
Each time a stream ends, it'll call the bpend_notify.classname script.  Each
time it is called, that script can write a line to a common file.  When that
filesize reaches STREAM_COUNT lines in size, then you can call your
notification routines.
 
There's all sort of caveats - what if a job is killed - the box crashes mid
backup, etc.  You can use the bpstart_notify to check for existing tracking
files and cleanup if necessary.
 
I've got a hell-spawned set of scripts that tries to coordinate multiple
streams to prepare a database for backup.  It works but it's supremely ugly.
It uses techniques based on STREAM_COUNT and STREAM_NUMBER.
 
-M

-----Original Message-----
From: Burkins, Chad [NCSUS Non J&J] [mailto:CBurkin AT MCCUS.JNJ DOT com]
Sent: Friday, June 14, 2002 12:25 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Notification of Class Completion




Good Afternoon, 

My environment: NetBackup DataCenter 3.4 with 34_3 Jumbo patch on HP-UX 11 

It appears that NBU DataCenter has a nice facility for notification of the
end of backup 
streams (backup_exit_notify); however, what I would like is to be notified
when a 
Class exits.  The problems stems from the fact that most of my classes start

up approximately 150 streams.  I only wanted to be notified when the whole 
class (including all the streams) complete successfully. 

Is that possible ? 

Please let me know if I can provide more information. 

-Chad Burkins 


------_=_NextPart_001_01C213D3.AD445900
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>Notification of Class Completion</TITLE>

<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff size=2>Not 
in 
a simple way, but there is a "STREAM_COUNT" environmental variable that is 
passed to both the client's bpstart_notify &amp; bpend_notify scripts.&nbsp; 
Each *_notify script can be named with class and schedule information, ie: 
bpend_notify.classname.</FONT></SPAN></DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff size=2>Each 
time a stream ends, it'll call the bpend_notify.classname script.&nbsp; Each 
time it is called, that script can write a line to a common file.&nbsp; When 
that filesize reaches STREAM_COUNT lines in size, then you can call your 
notification routines.</FONT></SPAN></DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff 
size=2>There's all sort of caveats - what if a job is killed - the box crashes 
mid backup, etc.&nbsp; You can use the bpstart_notify to check for existing 
tracking files and cleanup if necessary.</FONT></SPAN></DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff size=2>I've 
got a hell-spawned set of scripts that tries to coordinate multiple streams to 
prepare a database for backup.&nbsp; It works but it's supremely ugly.&nbsp; It 
uses techniques based on STREAM_COUNT and STREAM_NUMBER.</FONT></SPAN></DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=250563418-14062002><FONT face=Arial color=#0000ff 
size=2>-M</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Burkins, Chad [NCSUS Non 
  J&amp;J] [mailto:CBurkin AT MCCUS.JNJ DOT com]<BR><B>Sent:</B> Friday, June 
14, 2002 
  12:25 PM<BR><B>To:</B> veritas-bu AT mailman.eng.auburn DOT 
edu<BR><B>Subject:</B> 
  [Veritas-bu] Notification of Class Completion<BR><BR></FONT></DIV><BR>
  <P><FONT face=Arial size=2>Good Afternoon,</FONT> </P>
  <P><FONT face=Arial size=2>My environment: NetBackup DataCenter 3.4 with 34_3 
  Jumbo patch on HP-UX 11</FONT> </P>
  <P><FONT face=Arial size=2>It appears that NBU DataCenter has a nice facility 
  for notification of the end of backup</FONT> <BR><FONT face=Arial 
  size=2>streams (backup_exit_notify); however, what I would like is to be 
  notified when a</FONT> <BR><FONT face=Arial size=2>Class exits.&nbsp; The 
  problems stems from the fact that most of my classes start</FONT> <BR><FONT 
  face=Arial size=2>up approximately 150 streams.&nbsp; I only wanted to be 
  notified when the whole</FONT> <BR><FONT face=Arial size=2>class (including 
  all the streams) complete successfully.</FONT> </P>
  <P><FONT face=Arial size=2>Is that possible ?</FONT> </P>
  <P><FONT face=Arial size=2>Please let me know if I can provide more 
  information.</FONT> </P>
  <P><FONT face=Arial size=2>-Chad Burkins</FONT> 
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C213D3.AD445900--

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