7000 collect IOPS

#!/bin/bash

run=0 #current cycle
times=10 #number of times to run
interval=5 #interval

echo "Operations per second per 5 seconds" > collectfile

#while run is smaller than times
#dataset-026 collects the number of NFSv4 operations per second
#awk reports the third column of the output
#sleep for interval seconds
#the result is put in file
#add 1 to run

#main
while (( $run < $times )) do collect=`ssh 192.168.4.136 analytics datasets select dataset-026 read 10| awk '{print $3}'` sleep $interval echo $collect >> collectfile
((run+=1))
done

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.