[Veritas-bu] Reporting scripts
2007-04-24 12:33:29
Subject: |
[Veritas-bu] Reporting scripts |
From: |
dave-bu at graniteweb.com (David Rock) |
Date: |
Tue, 24 Apr 2007 11:33:29 -0500 |
* Jeff Cleverley <jeff.cleverley at avagotech.com> [2007-04-17 20:54]:
> Darren,
>
> I actually feel better knowing that there wasn't a real easy solution
> :-) I did some experimenting and came up with a way that seems
> relatively accurate for what I want.
>
> >>
> cd /usr/openv/netbackup/db/images/
>
>
>
> if [ -f /tmp/stats ]
> then
> rm /tmp/stats
> fi
>
>
>
> ls > /tmp/clients
> for CLIENT in `cat /tmp/clients`
> do
> cat $CLIENT/STREAMS |grep -v ^T | awk '{print $2,$4,$8}' |grep -v ^0
> |sed 's/$/ '$CLIENT'/' >> /tmp/stats
> done
>
> <<
The only downside to doing it this way is it will break horribly once
Symantec decides to change the underlying database structure. Combining
several CLI commands is a safer, albiet longer, way to do it. Just
remember that they _do_ like to change things from time to time ;-)
--
David Rock
david at graniteweb.com
|
|
|