Veritas-bu

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

2005-08-25 10:43:26
Subject: [Veritas-bu] Best method to check when a box was successfully backed up?
From: Gregory.Geyer AT Avnet DOT com (Geyer, Gregory)
Date: Thu, 25 Aug 2005 07:43:26 -0700
This is a multi-part message in MIME format.

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

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


________________________________

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40"; xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2722" 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; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D839493214-25082005><FONT =
face=3D"Courier New"=20
color=3D#0000ff size=3D2>I use a script that basically does a foreach =
loop for the=20
clients found in "bpplclients -allunique -l" and greps out their name as =
well as=20
"EXIT STAUTS" from the log files under =
/usr/openv/netbackup/db/error.&nbsp;=20
Here's&nbsp;the sort of output you could generate and then parse into =
whatever=20
format you wish:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D839493214-25082005><FONT =
face=3D"Courier New"=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D839493214-25082005><FONT =
face=3D"Courier New"=20
color=3D#0000ff size=3D2><A =
href=3D"mailto:root@master:/var";>root@master:/var</A>#=20
grep "EXIT STATUS" /usr/openv/netbackup/db/error/log_* | grep=20
client</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D839493214-25082005><FONT =
face=3D"Courier New"=20
color=3D#0000ff =
size=3D2><BR>/usr/openv/netbackup/db/error/log_1124694000:1124725959=20
1 68 4 media_server 709235 709235 0 client bpsched CLIENT client&nbsp; =
POLICY=20
sap_client_hpux&nbsp; SCHED client_hpux_incr&nbsp; EXIT STATUS 0 (the =
requested=20
operation was successfully completed)</FONT></SPAN></DIV><SPAN=20
class=3D839493214-25082005>
<DIV dir=3Dltr align=3Dleft><BR><FONT face=3D"Courier New" =
color=3D#0000ff=20
size=3D2>/usr/openv/netbackup/db/error/log_1124694000:1124730223 1 72 4=20
media_server 709322 709322 0 client bpsched CLIENT client&nbsp; POLICY=20
sap_client_hpux&nbsp; SCHED client_audit_arch&nbsp; EXIT STATUS 0 (the =
requested=20
operation was successfully completed)</FONT></DIV>
<DIV dir=3Dltr align=3Dleft><BR><FONT face=3D"Courier New" =
color=3D#0000ff=20
size=3D2>/usr/openv/netbackup/db/error/log_1124780400:1124812348 1 68 4=20
media_server 711277 711277 0 client bpsched CLIENT client&nbsp; POLICY=20
sap_client_hpux&nbsp; SCHED client_hpux_<SPAN=20
class=3D839493214-25082005>full</SPAN>&nbsp; EXIT STATUS 0 (the =
requested=20
operation was successfully completed)</FONT></DIV>
<DIV dir=3Dltr align=3Dleft><BR><FONT face=3D"Courier New" =
color=3D#0000ff=20
size=3D2>/usr/openv/netbackup/db/error/log_1124866800:1124898753 1 68 4=20
media_server 713414 713414 0 client bpsched CLIENT client&nbsp; POLICY=20
sap_client_hpux&nbsp; SCHED client_hpux_incr&nbsp; EXIT STATUS 0 (the =
requested=20
operation was successfully completed<BR></FONT></DIV></SPAN><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>Piszcz,=20
Justin<BR><B>Sent:</B> Thursday, August 25, 2005 5:56 AM<BR><B>To:</B>=20
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] Best =
method to=20
check when a box was successfully backed up?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I know I can utilize =
various bp*=20
commands as well as a bpreport.pl script I found in the archive mailing=20
lists.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">But on a per-client basis, =
what is=20
the best way to determine *<B><SPAN style=3D"FONT-WEIGHT: =
bold">when</SPAN></B>*=20
the last successful (full or incremental) backup=20
occurred?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Client =3D=20
boxA<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">$ ./command =
&#8211;switches=20
boxA<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">boxA last full backup was =
successful=20
on August 24<SUP>th</SUP>, it started at 8:00pm and ended at=20
10pm<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I will keep researching =
this but I=20
thought I&#8217;d ask to see if anyone had anything that they used for =
this=20
purpose.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Justin.<o:p></o:p></SPAN></FONT></P></DIV></BODY></HTML>

------_=_NextPart_001_01C5A983.5A417ADE--