How can you determine the "Actual" speed of a tape device attached to your media server?
[color red]bperror -server <MediaServer> -hoursago <number of hours>[/color] or ...
[color red]bperror -server <MediaServer> -s <StartDate> <StartTime> -e <EndDate> <EndTime>[/color]
Using either of those commands - Output the results to a text file as in > c:\results.txt.
Use grep to organize and sort the results ...
[color red]grep Kbytes/sec c:\results.txt |grep -v duplicate |grep -v restore |awk -F\, '{print $NF}'|awk -f AWKFILE| awk '{print ($3)}'> c:\kbytes.txt
grep Kbytes/sec c:\results.txt |grep -v duplicate |grep -v restore |awk -F\, '{print $NF}'|awk -f $AWKFILE| awk '{print ($5)}'> c:\mytes.txt [/color]
I am piping the results of the awk to two additional text files - c:\kbytes.txt and c:\mbytes.txt - This simply lists a number in either kilobytes or megabytes.
The AWKFILE is a standard file containing the following:
[color red]
BEGIN {bytes=0;thruput=0;items=0}
That is how it tabulates the results. With these command you can easily compile one file to perform everything in one step, including getting the results for ALL your media servers in one go. I use this in a small VB application that I wrote up and it gives the user an option to select a media server, specify a time frame or a time period and then view the results which is in kbytes/sec or mbytes/min.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.