[Veritas-bu] Media report !
2002-06-03 14:28:54
Subject: |
[Veritas-bu] Media report ! |
From: |
ddunham AT taos DOT com (Darren Dunham) |
Date: |
Mon, 3 Jun 2002 11:28:54 -0700 (PDT) |
>
> Hi folks !
> Is there any what to get a report of Media used for a particular class for a
> given time frame? For example, I want to find out the tapes used for my
> NT-Prod class during weekend(Full backup). I am trying to relate how
> Netbackup chosses Media.
The 'bpimmedia' can generate a report based on class and timeframe (plus
save level and other goodies if you want), and you can scan or parse the
report for tapes used. If I needed the total data saved on each tape,
I'd toss it into a quick perl script.
For just a list of the tapes, you can use awk and sort
bpimmedia -class <class> -d <date> -e <date> |
awk '/FRAG/ {print $9}' | sort -u
For a summary of tapes used... hm....
bpimmedia -class <class> -d <date> -e <date> | perl -ane '$a{$F[8]} +=
$F[3] if /^FRAG/;END {foreach $m (sort keys %a) { print "$m - $a{$m}\n"}}'
for the amount of space used by that bpimmedia report on each tape in KB.
--
Darren Dunham ddunham AT taos DOT com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
|