5 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 rm -f $seq.out
$seq.full
17 if [ $PCP_PLATFORM = darwin
]
19 ln $seq.out
.2 $seq.out
21 ln $seq.out
.1 $seq.out
24 status
=0 # success is the default!
26 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
28 cat <<'End-of-File' >$tmp.config
29 loadav = kernel.all.load #'1 minute';
30 '%usr' = kernel.all.cpu.user;
31 '%sys' = kernel.all.cpu.sys;
32 '%wio' = kernel.all.cpu.wait.total;
33 '%idle' = kernel.all.cpu.idle;
34 'maxiops' = max_inst(disk.dev.total);
40 -e 's/^[A-Z][a-z][a-z] [A-Z][a-z][a-z] *[0-9][0-9]* [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [0-9][0-9][0-9][0-9] /DATE /' \
41 -e 's/ *[0-9][0-9.]*/ N/g'
44 # missing metric errors now look something like this ...
45 # pmie: metric kernel.all.cpu.wait.total not in namespace for pmcd local: (host fuji)
50 -e '/not in namespace/s/host .*)/host LOCALHOST)/'
53 # real QA test starts here
54 echo "=== live ===" |
tee -a $seq.full
55 pmie
-v -t 1 -T 3 <$tmp.config
>$tmp.out
2>$tmp.tmp
56 cat $tmp.out
>>$seq.full
57 sed -e '/Info: evaluator exiting/d' <$tmp.tmp
>$tmp.err
60 echo "pmie errors ..."
68 echo |
tee -a $seq.full
69 echo "=== live, pmie -e ===" |
tee -a $seq.full
70 pmie
-v -e -t 1 -T 3 <$tmp.config
>$tmp.out
2>$tmp.tmp
71 cat $tmp.out
>>$seq.full
72 sed -e '/Info: evaluator exiting/d' <$tmp.tmp
>$tmp.err
75 echo "pmie errors ..."
83 echo |
tee -a $seq.full
84 echo "=== archive and pmie2col -w ===" |
tee -a $seq.full
85 pmie
-v -z -A 30m
-t 30m
-a archives
/kenj-pc-1
<$tmp.config
>$tmp.out
2>$tmp.tmp
86 cat $tmp.out
>>$seq.full
87 sed -e '/Info: evaluator exiting/d' <$tmp.tmp
>$tmp.err
90 echo "pmie errors ..."