The first thing I would do is get the tapes that were written to in the past 24hr(s):
bpimagelist -A -media -hoursago 24 | sed '1,3d'| awk '{print $1}' > /tmp/tapes_written_in_24.txt
Then I would run available_media and match that to the tapes written to...
/usr/openv/netbackup/bin/goodies/available_media > /tmp/TAPEs.txt
Fire off a for loop and pll out what you need from TAPEs.txt:for i in `cat /tmp/tapes_written_in_24.txt`
do
echo "$i \c"
grep $i /tmp/TAPEs.txt | awk '{print $8}'
done
And wa-la..... 1st column is your volser and the second is the amount in kb(s)..
Joe Despres