Veritas-bu

[Veritas-bu] Best method to check when a box was successfully backed up?

2005-08-25 10:45:35
Subject: [Veritas-bu] Best method to check when a box was successfully backed up?
From: jpiszcz AT servervault DOT com (Piszcz, Justin)
Date: Thu, 25 Aug 2005 10:45:35 -0400
This is a multi-part message in MIME format.

------_=_NextPart_001_01C5A983.A73B6069
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks for the help and suggestions, I've written a small script to do
this.

=20

It is basically what is suggested below, but using bperror -hoursago 168
(for a week) and then grepping for the clients.

=20

I thought that there may be an app out there that did this, but I was
wrong.

=20

Thanks,

=20

Justin.

=20

________________________________

From: Geyer, Gregory [mailto:Gregory.Geyer AT Avnet DOT com]=20
Sent: Thursday, August 25, 2005 10:43 AM
To: Piszcz, Justin; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Best method to check when a box was
successfully backed up?

=20

I use a script that basically does a foreach loop for the clients found
in "bpplclients -allunique -l" and greps out their name as well as "EXIT
STAUTS" from the log files under /usr/openv/netbackup/db/error.  Here's
the sort of output you could generate and then parse into whatever
format you wish:

=20

root@master:/var# grep "EXIT STATUS" /usr/openv/netbackup/db/error/log_*
| grep client


/usr/openv/netbackup/db/error/log_1124694000:1124725959 1 68 4
media_server 709235 709235 0 client bpsched CLIENT client  POLICY
sap_client_hpux  SCHED client_hpux_incr  EXIT STATUS 0 (the requested
operation was successfully completed)


/usr/openv/netbackup/db/error/log_1124694000:1124730223 1 72 4
media_server 709322 709322 0 client bpsched CLIENT client  POLICY
sap_client_hpux  SCHED client_audit_arch  EXIT STATUS 0 (the requested
operation was successfully completed)


/usr/openv/netbackup/db/error/log_1124780400:1124812348 1 68 4
media_server 711277 711277 0 client bpsched CLIENT client  POLICY
sap_client_hpux  SCHED client_hpux_full  EXIT STATUS 0 (the requested
operation was successfully completed)


/usr/openv/netbackup/db/error/log_1124866800:1124898753 1 68 4
media_server 713414 713414 0 client bpsched CLIENT client  POLICY
sap_client_hpux  SCHED client_hpux_incr  EXIT STATUS 0 (the requested
operation was successfully completed

=20

________________________________

From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Piszcz,
Justin
Sent: Thursday, August 25, 2005 5:56 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Best method to check when a box was successfully
backed up?

I know I can utilize various bp* commands as well as a bpreport.pl
script I found in the archive mailing lists.

But on a per-client basis, what is the best way to determine *when* the
last successful (full or incremental) backup occurred?

=20

Client =3D boxA

=20

$ ./command -switches boxA

boxA last full backup was successful on August 24th, it started at
8:00pm and ended at 10pm

=20

I will keep researching this but I thought I'd ask to see if anyone had
anything that they used for this purpose.

=20

Justin.


------_=_NextPart_001_01C5A983.A73B6069
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<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
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        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>

<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'>Thanks for the help and =
suggestions, I&#8217;ve
written a small script to do this.<o:p></o:p></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'><o:p>&nbsp;</o:p></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'>It is basically what is suggested =
below,
but using bperror &#8211;hoursago 168 (for a week) and then grepping for =
the
clients.<o:p></o:p></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'><o:p>&nbsp;</o:p></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'>I thought that there may be an app =
out
there that did this, but I was wrong.<o:p></o:p></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'><o:p>&nbsp;</o:p></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,<o:p></o:p></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'><o:p>&nbsp;</o:p></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'>Justin.<o:p></o:p></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'><o:p>&nbsp;</o:p></span></font></p>

<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'> =
Geyer, Gregory
[mailto:Gregory.Geyer AT Avnet DOT com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, August =
25, 2005
10:43 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Piszcz, Justin;
veritas-bu AT mailman.eng.auburn DOT edu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [Veritas-bu] =
Best
method to check when a box was successfully backed =
up?</span></font><o:p></o:p></p>

</div>

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

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:blue'>I use a =
script
that basically does a foreach loop for the clients found in =
&quot;bpplclients
-allunique -l&quot; and greps out their name as well as &quot;EXIT =
STAUTS&quot;
from the log files under /usr/openv/netbackup/db/error.&nbsp; =
Here's&nbsp;the
sort of output you could generate and then parse into whatever format =
you wish:</span></font><o:p></o:p></p>

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

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:blue'><a
href=3D"mailto:root@master:/var";>root@master:/var</a># grep &quot;EXIT
STATUS&quot; /usr/openv/netbackup/db/error/log_* | grep =
client</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:blue'><br>
/usr/openv/netbackup/db/error/log_1124694000:1124725959 1 68 4 =
media_server
709235 709235 0 client bpsched CLIENT client&nbsp; POLICY =
sap_client_hpux&nbsp;
SCHED client_hpux_incr&nbsp; EXIT STATUS 0 (the requested operation was
successfully completed)</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br>
</span></font><font size=3D2 color=3Dblue face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:blue'>/usr/openv/netbackup/db/error/log_1124694000:1124730223
1 72 4 media_server 709322 709322 0 client bpsched CLIENT client&nbsp; =
POLICY sap_client_hpux&nbsp;
SCHED client_audit_arch&nbsp; EXIT STATUS 0 (the requested operation was
successfully completed)</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br>
</span></font><font size=3D2 color=3Dblue face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:blue'>/usr/openv/netbackup/db/error/log_1124780400:1124812348
1 68 4 media_server 711277 711277 0 client bpsched CLIENT client&nbsp; =
POLICY
sap_client_hpux&nbsp; SCHED client_hpux_full&nbsp; EXIT STATUS 0 (the =
requested
operation was successfully completed)</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br>
</span></font><font size=3D2 color=3Dblue face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:blue'>/usr/openv/netbackup/db/error/log_1124866800:1124898753
1 68 4 media_server 713414 713414 0 client bpsched CLIENT client&nbsp; =
POLICY
sap_client_hpux&nbsp; SCHED client_hpux_incr&nbsp; EXIT STATUS 0 (the =
requested
operation was successfully completed</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></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>Piszcz, Justin<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, August =
25, 2005
5:56 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] =
Best method
to check when a box was successfully backed =
up?</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I know I can utilize various bp* commands as well as =
a
bpreport.pl script I found in the archive mailing =
lists.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>But on a per-client basis, what is the best way to =
determine
*<b><span style=3D'font-weight:bold'>when</span></b>* the last =
successful (full
or incremental) backup occurred?<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Client =3D boxA<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$ ./command &#8211;switches =
boxA<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>boxA last full backup was successful on August =
24<sup>th</sup>,
it started at 8:00pm and ended at 10pm<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I will keep researching this but I thought I&#8217;d =
ask to
see if anyone had anything that they used for this =
purpose.<o:p></o:p></span></font></p>

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

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Justin.<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C5A983.A73B6069--