Veritas-bu

[Veritas-bu] Server Backup Notification Script

2002-01-17 13:00:04
Subject: [Veritas-bu] Server Backup Notification Script
From: larry.kingery AT veritas DOT com (Larry Kingery)
Date: Thu, 17 Jan 2002 13:00:04 -0500 (EST)
This should get you started.  I used 138 hours because I hadn't had an
error in the last 72.  

spartan# bperror -U -client hobbes -backstat -hoursago 138
STATUS CLIENT        POLICY           SCHED      SERVER      TIME COMPLETED
196    hobbes        unix             INCR       spartan     01/12/2002 
08:00:22 
                 (client backup was not attempted because backup window closed)
  0    hobbes        unix             INCR       trigger     01/12/2002 
13:32:50 
  0    hobbes        unix             INCR       trigger     01/13/2002 
03:10:38 
196    hobbes        unix             INCR       spartan     01/14/2002 
08:00:01 
                 (client backup was not attempted because backup window closed)
  0    hobbes        unix             INCR       trigger     01/15/2002 
03:34:32 
  0    hobbes        unix             INCR       trigger     01/16/2002 
03:11:02 
  0    hobbes        unix             INCR       trigger     01/17/2002 03:14:37

These options may also be of interest:

           [-L|-l|-U] [-columns ncols]
           [-d mm/dd/yyyy HH:MM:SS|-hoursago hours] [-e mm/dd/yyyy HH:MM:SS]



Forster, Wes writes:
> Hello,
>   I have a need for a script or set of scripts that I can schedule that
> will notify the owner of the status of backups for a particular server.
> I want to schedule this report in CRON. So at 7:30am a script runs from
> CRON that generates a set of emails to our customers reporting on the
> last three days of backup activity for their servers. There is a canned
> report in Advanced Reporter that would work but I cant schedule it to
> send an email.
>   I don't need anyone to write the script. (If someone has something
> similar to this I would appreciate being able to see it.) What I could
> use is advise as to what executables will provide the content I desire.
>  
>  
> Thanks
> Wes A Forster
> AEGON Insurance Group
> <html xmlns:o="urn:schemas-microsoft-com:office:office" 
> xmlns:w="urn:schemas-microsoft-com:office:word" 
> xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 
> xmlns="http://www.w3.org/TR/REC-html40";>
> 
> <head>
> 
> 
> 
> <meta name=ProgId content=Word.Document>
> <meta name=Generator content="Microsoft Word 10">
> <meta name=Originator content="Microsoft Word 10">
> <link rel=File-List href="cid:[email protected]">
> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
>  name="time"/>
> <!--[if gte mso 9]><xml>
>  <o:OfficeDocumentSettings>
>   <o:DoNotRelyOnCSS/>
>  </o:OfficeDocumentSettings>
> </xml><![endif]--><!--[if gte mso 9]><xml>
>  <w:WordDocument>
>   <w:SpellingState>Clean</w:SpellingState>
>   <w:GrammarState>Clean</w:GrammarState>
>   <w:DocumentKind>DocumentEmail</w:DocumentKind>
>   <w:EnvelopeVis/>
>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
>  </w:WordDocument>
> </xml><![endif]--><!--[if !mso]>
> <style>
> st1\:*{behavior:url(#default#ieooui) }
> </style>
> <![endif]-->
> <style>
> <!--
>  /* Style Definitions */
>  p.MsoNormal, li.MsoNormal, div.MsoNormal
>       {mso-style-parent:"";
>       margin:0in;
>       margin-bottom:.0001pt;
>       mso-pagination:widow-orphan;
>       font-size:12.0pt;
>       font-family:"Times New Roman";
>       mso-fareast-font-family:"Times New Roman";}
> a:link, span.MsoHyperlink
>       {color:blue;
>       text-decoration:underline;
>       text-underline:single;}
> a:visited, span.MsoHyperlinkFollowed
>       {color:purple;
>       text-decoration:underline;
>       text-underline:single;}
> span.EmailStyle17
>       {mso-style-type:personal-compose;
>       mso-style-noshow:yes;
>       mso-ansi-font-size:10.0pt;
>       mso-bidi-font-size:10.0pt;
>       font-family:Arial;
>       mso-ascii-font-family:Arial;
>       mso-hansi-font-family:Arial;
>       mso-bidi-font-family:Arial;
>       color:windowtext;}
> span.GramE
>       {mso-style-name:"";
>       mso-gram-e:yes;}
> @page Section1
>       {size:8.5in 11.0in;
>       margin:1.0in 1.25in 1.0in 1.25in;
>       mso-header-margin:.5in;
>       mso-footer-margin:.5in;
>       mso-paper-source:0;}
> div.Section1
>       {page:Section1;}
> -->
> </style>
> <!--[if gte mso 10]>
> <style>
>  /* Style Definitions */ 
>  table.MsoNormalTable
>       {mso-style-name:"Table Normal";
>       mso-tstyle-rowband-size:0;
>       mso-tstyle-colband-size:0;
>       mso-style-noshow:yes;
>       mso-style-parent:"";
>       mso-padding-alt:0in 5.4pt 0in 5.4pt;
>       mso-para-margin:0in;
>       mso-para-margin-bottom:.0001pt;
>       mso-pagination:widow-orphan;
>       font-size:10.0pt;
>       font-family:"Times New Roman";}
> </style>
> <![endif]-->
> </head>
> 
> <body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
> 
> <div class=Section1>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'>Hello,<o:p></o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'><span style='mso-spacerun:yes'>&nbsp; </span>I have a need
> for a script or set of scripts that I can schedule that will notify the owner
> of the status of backups for a particular server. I want to schedule this
> report in CRON. So at </span></font><st1:time Hour="7" Minute="30"><font
>  size=2 face=Arial><span 
> style='font-size:10.0pt;font-family:Arial'>7:30am</span></font></st1:time><font
> size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> a script
> runs from CRON that generates a set of emails to our customers reporting on 
> the
> last three days of backup activity for their servers. There is a canned report
> in Advanced Reporter that would work but I <span class=GramE>cant</span>
> schedule it to send an email.<o:p></o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'><span style='mso-spacerun:yes'>&nbsp; </span>I don't need
> anyone to write the script. (If someone has something similar to this I would
> appreciate being able to see it.) What I could use is <span 
> class=GramE>advise</span>
> as to what executables will provide the content I 
> desire.<o:p></o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'>Thanks<o:p></o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'>Wes A Forster<o:p></o:p></span></font></p>
> 
> <p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'>AEGON Insurance Group<o:p></o:p></span></font></p>
> 
> </div>
> 
> </body>
> 
> </html>

-- 
Larry Kingery 
         "Trust me, I know what I'm doing."  -- Sledge Hammer

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