Created
January 11, 2013 19:29
-
-
Save concubidated/4513281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Server, Disk, Size, Read BW, Write BW, Read BW, Write IOPS" | |
for osd in {0..43} | |
do | |
throughput=`tail -n3 osd.${osd}_* | grep time | awk -F \" '{print $30}'` | |
iops=`tail -n3 osd.${osd}_* | grep time | awk -F \" '{print $22}'` | |
declare -a Bw=($throughput) | |
declare -a Iops=($iops) | |
echo -e ",osd.${osd},4096,${Bw[2]}, ${Bw[3]}, ${Iops[2]}, ${Iops[3]}" | |
echo -e ",osd.${osd},131073,${Bw[0]}, ${Bw[1]}, ${Iops[0]}, ${Iops[1]}" | |
echo -e ",osd.${osd},4194304,${Bw[4]}, ${Bw[5]}, ${Iops[4]}, ${Iops[5]}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment