3 # Verify the good stuff happens with pmclient_fg.python (archive mode)
4 # Python toolchain variant of test 053.
6 # Copyright (c) 2016 Red Hat.
7 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
11 echo "QA output created by $seq"
15 pyclient
="$PCP_DEMOS_DIR/pmclient/pmclient_fg.python"
16 [ -f $pyclient ] || _notrun
"No $pyclient installed"
17 pmclient
="$python $pyclient"
23 /^Archive: / { print "... title ..."; next }
24 /^[0-9. ]*$/ { print "... " NF " numbers ..."; next }
28 trap "rm -f $tmp $tmp.*; exit" 0 1 2 3 15
31 # real QA test starts here
32 cat >$tmp.config
<<End-of-File
33 log mandatory on once {
36 log mandatory on 5 secs {
37 kernel.all.load [ "1 minute", "15 minute" ]
38 kernel.percpu.cpu.user
44 pmlogger
-c $tmp.config
-l $tmp.log
-s 4 $tmp
45 _filter_pmlogger_log
<$tmp.log
46 cat $tmp.log
>>$here/$seq.full
48 pmdumplog
$tmp >>$here/$seq.full
50 ncpu
=`pmprobe -v hinv.ncpu 2>&1 \
52 NF == 3 && $2 == 1 { print $3; exit }
56 # output is sensitive to SP/MP ... so do the one that is real, and fake
61 echo "real SP case" >>$here/$seq.full
62 $pmclient -a $tmp | _filter
66 pmclient_fg.python: End of PCP archive log
68 CPU Busy Busy Free Mem Disk Load Average
69 Util CPU Util (Mbytes) IOPS 1 Min 15 Min
76 pmclient_fg.python: End of PCP archive log
78 CPU Free Mem Disk Load Average
79 Util (Mbytes) IOPS 1 Min 15 Min
84 echo "real MP case" >>$here/$seq.full
85 $pmclient -a $tmp | _filter