3 # pmlogger -Dall calls __pmDumpResult() which fails for usage with
4 # pmlc control requests
6 # Copyright (c) 2012 Ken McDonell. All Rights Reserved.
8 # check-group-include: pmlogger
11 echo "QA output created by $seq"
13 # get standard environment, filters and checks
19 $sudo rm -rf $tmp.
* $seq.full
20 trap "_cleanup" 0 1 2 3 15
27 _restore_config
$control
29 _restore_primary_logger
30 _service pcp restart | _filter_pcp_start
40 -e 's/Version [0-9].*/Version VERSION/'
43 control
=$PCP_PMLOGGERCONTROL_PATH
44 [ -f $PCP_PMLOGGERCONTROL_PATH.d
/local ] && \
45 control
=$PCP_PMLOGGERCONTROL_PATH.d
/local
47 # stop primary logger, add -Dall to config file and restart pmlogger
48 _service pcp stop
>/dev
/null
2>&1
49 sed -e '/^LOCALHOSTNAME/s/$/ -Dall/' < $control >$tmp.control
51 $sudo cp $tmp.control
$control
52 _writable_primary_logger
53 _service pcp restart | _filter_pcp_start
57 # real QA test starts here
58 pmlc
-ie <<End-of-File | _filter
61 log mandatory on once sample.event.records