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_01C285AA.56222CD0
Content-Type: text/plain;
charset="iso-8859-1"
bpimagelist -U gives a lot of what you want. The options on the command
will let you limit to full only, client only, timeframe, etc. If you need
to add stuff up, it's a simple matter to slip output into awk and total
columns.
$ bpimagelist -U -client backup00.lodo.in.exactis.com -hoursago 12
Backed Up Expires Files KB C Sched Type Class
---------------- ---------- -------- -------- - ------------ ------------
11/06/2002 08:03 11/20/2002 161 107872 N Full Backup Oracle_ods1p
11/06/2002 08:03 11/20/2002 1963 5757728 N Full Backup
Oracle_tools1p
11/06/2002 08:03 11/20/2002 1503 13504 N Full Backup
Oracle_portal1p
11/06/2002 00:13 11/20/2002 102 71887445 N Full Backup
Oracle_mmprod1
11/06/2002 00:13 11/20/2002 120 85772420 N Full Backup
Oracle_mmprod1
11/06/2002 00:13 11/20/2002 120 83874730 N Full Backup
Oracle_mmprod1
11/06/2002 00:13 11/20/2002 239 81696011 N Full Backup
Oracle_mmprod1
summing up for this client over the last 12 hours:
$ bpimagelist -U -client backup00.lodo.in.exactis.com -hoursago 12 | awk
'NR>2 {sum=sum+$5} END {print sum}'
329109710
-----Original Message-----
From: jerome bauwens [mailto:jerome.bauwens AT steria DOT com]
Sent: Wednesday, November 06, 2002 7:40 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Number of bytes backep up
Hi,
I need to do a weekly report showing the number of bytes backep up for some
individual client during FULL backups. Would anyone have a script which
would do something like that after checking if the backup were ok knowing
that the FULLS are not all running the same day and that some client use one
class and some 3 classes.
I know I'm asking a lot but at least I tried.
Jerome
------_=_NextPart_001_01C285AA.56222CD0
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">
<META content="MSHTML 5.50.4919.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2>bpimagelist -U gives a lot of what you want. The options on
the command will let you limit to full only, client only, timeframe, etc.
If you need to add stuff up, it's a simple matter to slip output into awk and
total columns.</FONT></SPAN></DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff size=2>$
bpimagelist -U -client backup00.lodo.in.exactis.com -hoursago 12<BR>Backed
Up
Expires
Files KB C Sched
Type Class<BR>---------------- ---------- --------
-------- - ------------ ------------<BR>11/06/2002 08:03
11/20/2002 161 107872 N
Full Backup Oracle_ods1p<BR>11/06/2002 08:03
11/20/2002 1963 5757728 N Full
Backup Oracle_tools1p<BR>11/06/2002 08:03
11/20/2002 1503 13504 N
Full Backup Oracle_portal1p<BR>11/06/2002 00:13
11/20/2002 102 71887445 N Full
Backup Oracle_mmprod1<BR>11/06/2002 00:13
11/20/2002 120 85772420 N Full
Backup Oracle_mmprod1<BR>11/06/2002 00:13
11/20/2002 120 83874730 N Full
Backup Oracle_mmprod1<BR>11/06/2002 00:13
11/20/2002 239 81696011 N Full
Backup Oracle_mmprod1<BR></FONT></SPAN></DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2>summing up for this client over the last 12 hours:</FONT></SPAN></DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff size=2>$
bpimagelist -U -client backup00.lodo.in.exactis.com -hoursago 12 | awk 'NR>2
{sum=sum+$5} END {print sum}'</FONT></SPAN></DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2>329109710<BR></FONT></SPAN></DIV>
<DIV><SPAN class=440053415-06112002><FONT face=Arial color=#0000ff
size=2> </DIV>
<DIV><BR></DIV></FONT></SPAN>
<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> jerome bauwens
[mailto:jerome.bauwens AT steria DOT com]<BR><B>Sent:</B> Wednesday, November
06,
2002 7:40 AM<BR><B>To:</B>
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu]
Number of
bytes backep up<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I need to do a weekly report showing the number
of bytes backep up for some individual client during FULL backups. Would
anyone have a script which would do something like that after checking if the
backup were ok knowing that the FULLS are not all running the same day and
that some client use one class and some 3 classes.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I know I'm asking a lot but at least I
tried.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jerome</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C285AA.56222CD0--
|