[Veritas-bu] Throughput statistics for Restores?
2003-09-20 02:04:25
Hello Will
Here is a short shell script that I did. You supply the jobid of restore on
the commandline.
#!/bin/ksh
OUTF=/tmp/bperror.out.$$
NBADM=/usr/openv/netbackup/bin/admincmd
$NBADM/bperror -jobid $1 -hoursago 72 > $OUTF
starttime=`head -1 $OUTF | awk {'print $1'}`
endtime=`tail -1 $OUTF | awk {'print $1}`
elapsetime=`echo "$endtime-$starttime" | bc`
sumkb=0
cat $OUTF | grep kbytes | awk {'print $19'} | while read kb
do
let sumkb=${sumkb}+${kb}
done
echo "Elapsed (seconds):\t$elapsetime"
echo "Total kilobytes:\t$sumkb \nSpeed (MBytes/sec):\t\c"
echo "$sumkb/($elapsetime*1024)" | bc -l
rm -f $OUTF
Example:
# ./restore_speed 320225
Elapsed (seconds): 79651
Total kilobytes: 296593797
Speed (MBytes/sec): 3.63639351524541437018
Regards
Michael
On Wed, 27 Aug 2003 11:47:09 -0400, William Enestvedt wrote
> Is there a place to get throughput statistics for a Restore, either
> after it's done or while it's running? I'm thinking either a count
> of raw Kb and the Elapsed Time, or the kind of pretty figures
> produced by the bperror command. I run NBU 3.4 Data Center on
> Solaris 8 with a couple of L9s (DLT8000) and an L25 (SDLT). Thanks
> in advance. -wde
> --
> Will Enestvedt
> UNIX System Administrator
> Johnson & Wales University -- Providence, RI
> William.Enestvedt AT jwu DOT edu
> Phone: (401) 598-1584 -- Cell: (401) 258-9169
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
--
Cybercity Webhosting (http://www.cybercity.dk)
|
|
|