Hello
You should be aware of that this script was made for NBU3.4 so that it will
proably need some tweaking to function under NBU5.1 and it will only give
amount Kbytes,elapsed time sec, tape write time sec, tapewritespeed
(MByte/sec) and MPX
regards
Michael
On Thu, 2 Jun 2005 10:10:04 -0700, Geyer, Gregory wrote
> Here's a script by one Michael Anderson which I use occasionally
> (with some modifications - like changing the outfile and putting in
> headers). First column is backupid, second is write time in seconds,
> third is total elapsed time, then kb, tape speed and multiplex setting.
>
> Sample output:
> nemo1_1117728981 42 60 189843 4.4
> 4
> nemo1_1117725405 34 157 148290 4.3
> 4
> nemo1_1117721885 85 900 760044 8.7
> 4
> nemo1_1117719730 129 286 748502 5.7
> 4
> nemo1_1117716632 49 237 121101 2.4
> 4
> nemo1_1117707361 30 48 113405 3.7
> 4
>
> Here's his original script, it is my impression that he has put it
> out there for public consumption (that's how I got it):
>
> # Created by: Michael Andersen
>
> #
>
> # The script still have bugs.
>
> # If you make improvements please mail them to
>
> # nbuscripts AT vip.cybercity DOT dk
>
> #
> # Todo: Make output format nicer, evt. as html-table.
>
> #!/bin/ksh
> OUTF=/tsm/logs/tapewritespeed.`date +'%Y%m%d'`
> NBADMIN=/usr/openv/netbackup/bin/admincmd
> DATE=`date +'%D'`
> BPERROROUT=/tmp/.bperror.$$.out
> rm -f $OUTF
> touch $OUTF
> $NBADMIN/bperror > $BPERROROUT
> $NBADMIN/bpcllist |
> while read class
> do
> echo $class >> $OUTF
> $NBADMIN/bpimagelist -hoursago 24 -idonly -class $class | awk {'print
> $8'} |
> while read backupid
> do
> $NBADMIN/bpimagelist -l -backupid $backupid | grep "IMAGE" | awk {'print
> $11" "$15" "$19'} | read sched elapsed kb
> grep "begin writing backup id $backupid, copy 1, fragment 1" $BPERROROUT
> |
> read time rest
> grep "successfully wrote backup id $backupid, copy 1" $BPERROROUT | tail
> -1 |
> read time2 rest
> echo "$time2-$time" | bc | read writetime
> echo "$kb/1024/$writetime" | bc -l | read tapewritespeed
> $NBADMIN/bpclsched $class -label $sched -U | grep MPX | awk {'print $3'}
> | read mpx
> printf "%-35s\t%6d\t%6d\t%10d%6.1f\t%1d\n" $backupid $writetime $elapsed
> $kb $tapewritespeed $mpx >> $OUTF
> done
> done
> cat $OUTF | mailx -s "Tape Write Speed $DATE" someone@somewhere
> rm -f $BPERROROUT
>
> -----Original Message-----
> From: veritas-bu-admin AT mailman.eng.auburn DOT edu
> [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Rolf C
> Sent: Thursday, June 02, 2005 5:04 AM
> To: veritas-bu AT mailman.eng.auburn DOT edu
> Subject: [Veritas-bu] (WIN-NBU5.1) Logging backup time (performance)
> of streams
>
> Hi there,
>
> Is there a possibility to check the backup time of a specific stream
> within a policy. F.e. we have one policy with 10 clients. For each
> driveletter we specify a new stream. Is it possible to get
> information about the start/end time and amount of data of each stream?
>
> Are there any commands i can use in scripts to retrieve performance
> data?
>
> Thanks
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
> _______________________________________________
> 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)
|