3 # Verify the good stuff happens with pmclient
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
20 /^Archive: / { print "... title ..."; next }
21 /^[0-9. ]*$/ { print "... " NF " numbers ..."; next }
25 trap "rm -f $tmp $tmp.*; exit" 0 1 2 3 15
29 # real QA test starts here
30 cat >$tmp.config
<<End-of-File
31 log mandatory on once {
34 log mandatory on 5 secs {
35 kernel.all.load [ "1 minute", "15 minute" ]
36 kernel.percpu.cpu.user
42 pmlogger
-c $tmp.config
-l $tmp.log
-s 4 $tmp
43 _filter_pmlogger_log
<$tmp.log
44 cat $tmp.log
>>$here/$seq.full
46 pmdumplog
$tmp >>$here/$seq.full
48 ncpu
=`pmprobe -v hinv.ncpu 2>&1 \
50 NF == 3 && $2 == 1 { print $3; exit }
54 # output is sensitive to SP/MP ... so do the one that is real, and fake
59 echo "real SP case" >>$here/$seq.full
60 pmclient
-a $tmp | _filter
64 pmclient: pmFetch: End of PCP archive log
66 CPU Busy Busy Free Mem Disk Load Average
67 Util CPU Util (Mbytes) IOPS 1 Min 15 Min
74 pmclient: pmFetch: End of PCP archive log
76 CPU Free Mem Disk Load Average
77 Util (Mbytes) IOPS 1 Min 15 Min
82 echo "real MP case" >>$here/$seq.full
83 pmclient
-a $tmp | _filter