5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 [ $PCP_PLATFORM = darwin
] && \
17 _notrun
"Neither disk.dev.response nor disk.dev.avactive for darwin"
19 status
=0 # success is the default!
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
23 $sudo rm -f core
* $seq.core
*
27 if [ $PCP_PLATFORM = irix
]
30 cat >$tmp.conf
<<'End-of-File'
32 total0 = $delta * $dsk.total@0;
33 total1 = $delta * $dsk.total@1;
34 iops = $delta * ($dsk.total@0 - $dsk.total@1);
35 resp = $delta * 1000 * ($dsk.response@0 - $dsk.response@1);
38 elif [ $PCP_PLATFORM = linux
]
41 cat >$tmp.conf
<<'End-of-File'
43 total0 = $delta * $dsk.total@0;
44 total1 = $delta * $dsk.total@1;
45 iops = $delta * ($dsk.total@0 - $dsk.total@1);
46 resp = $delta * 1000 * ($dsk.avactive@0 - $dsk.avactive@1);
49 elif [ $PCP_PLATFORM = solaris
]
52 cat >$tmp.conf
<<'End-of-File'
54 total0 = $delta * $dsk.total@0;
55 total1 = $delta * $dsk.total@1;
56 iops = $delta * ($dsk.total@0 - $dsk.total@1);
57 resp = $delta * 1000 * ($dsk.run.time@0 - $dsk.run.time@1);
64 pmie
-vv -t 1 -T 1 <$tmp.conf
>/dev
/null
2>$tmp.err
65 echo "Stderr output ..."
66 cat $tmp.err | _show_pmie_errors
72 if [ $PCP_PLATFORM = irix
]
75 cat >$tmp.conf
<<'End-of-File'
77 total0 = $delta * $dsk.total@0;
78 total1 = $delta * $dsk.total@1;
79 iops = $delta * ($dsk.total@0 - $dsk.total@1);
80 resp = $delta * 1000 * ($dsk.response@0 - $dsk.response@1);
81 avg = $delta * 1000 * ($dsk.response@0 - $dsk.response@1) / ($dsk.total@0 - $dsk.total@1);
84 elif [ $PCP_PLATFORM = linux
]
87 cat >$tmp.conf
<<'End-of-File'
89 total0 = $delta * $dsk.total@0;
90 total1 = $delta * $dsk.total@1;
91 iops = $delta * ($dsk.total@0 - $dsk.total@1);
92 resp = $delta * 1000 * ($dsk.avactive@0 - $dsk.avactive@1);
93 avg = $delta * 1000 * ($dsk.avactive@0 - $dsk.avactive@1) / ($dsk.total@0 - $dsk.total@1);
96 elif [ $PCP_PLATFORM = solaris
]
99 cat >$tmp.conf
<<'End-of-File'
101 total0 = $delta * $dsk.total@0;
102 total1 = $delta * $dsk.total@1;
103 iops = $delta * ($dsk.total@0 - $dsk.total@1);
104 resp = $delta * 1000 * ($dsk.run.time@0 - $dsk.run.time@1);
105 avg = $delta * 1000 * ($dsk.run.time@0 - $dsk.run.time@1) / ($dsk.total@0 - $dsk.total@1);
112 pmie
-vv -t 1 -T 1 <$tmp.conf
>/dev
/null
2>$tmp.err
113 echo "Stderr output ..."
114 cat $tmp.err | _show_pmie_errors