5 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
8 echo "QA output created by $seq"
10 if which diskstat
>/dev
/null
2>&1
14 echo "No diskstat binary installed" >$seq.notrun
15 echo "$seq: [not run] `cat $seq.notrun`"
19 # get standard environment, filters and checks
24 status
=0 # success is the default!
26 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
28 # real QA test starts here
30 pmdumplog
-z -a archives
/kenj-pc-diskstat disk
>$tmp.out
31 awk <$tmp.out
'/^[0-1].*\(disk.dev.read\)/ { print NR }' >$tmp.tmp
32 echo "=== first sample ==="
34 l
=`sed -e 1d -e 2q $tmp.tmp`
36 sed -n -e "$f,${l}p" $tmp.out
38 echo "=== last sample ==="
40 sed -n -e "$f,\$p" $tmp.out
44 pmval
-z -t 10 -S 10 -a archives
/kenj-pc-diskstat disk.dev.total
47 echo "=== diskstat ==="
48 diskstat
-z -t 10 -S 10 -a archives
/kenj-pc-diskstat
51 echo "=== diskstat -i ==="
52 diskstat
-z -i -t 10 -S 10 -a archives
/kenj-pc-diskstat
55 echo "=== diskstat -x ==="
56 diskstat
-z -x -t 10 -S 10 -a archives
/kenj-pc-diskstat