3 # check out pmclient_fg python script (live mode)
4 # Python toolchain variant of test 109.
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"
19 trap "rm -f $tmp.*; exit" 0 1 2 3 15
24 -e 's/^Host: .*/Host: .../' \
25 -e 's/ *[0-9][0-9]*\.[0-9][0-9]*/ FLOAT/g' \
26 -e 's/ *[0-9][0-9]*/ INTEGER/g'
29 # real QA test starts here
31 ncpu
=`pmprobe -v hinv.ncpu 2>&1 \
33 NF == 3 && $2 == 1 { print $3; exit }
37 # output is sensitive to SP/MP ... so do the one that is real, and fake
42 $pmclient -t 1 -s 3 | _filter
47 CPU Busy Busy Free Mem Disk Load Average
48 Util CPU Util (Mbytes) IOPS INTEGER Min INTEGER Min
49 FLOAT INTEGER FLOAT FLOAT INTEGER FLOAT FLOAT
50 FLOAT INTEGER FLOAT FLOAT INTEGER FLOAT FLOAT
51 FLOAT INTEGER FLOAT FLOAT INTEGER FLOAT FLOAT
57 CPU Free Mem Disk Load Average
58 Util (Mbytes) IOPS INTEGER Min INTEGER Min
59 FLOAT FLOAT INTEGER FLOAT FLOAT
60 FLOAT FLOAT INTEGER FLOAT FLOAT
61 FLOAT FLOAT INTEGER FLOAT FLOAT
64 $pmclient -t 1 -s 3 | _filter