3 # pmval -i failure for indom not defined at start of archive?
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 trap "$sudo rm -f $tmp.*; exit" 0 1 2 3 15
21 -e 's/connect [0-9][0-9]*/connect PID/' \
24 -e 's/Version [0-9].*/Version VERSION/'
31 -e '/pmResult/s/ .* numpmid/ ... numpmid/' \
33 s/value [0-9][0-9]*/value INTEGER/
34 s/[0-9]*\.[0-9]*\.[0-9]*/PMID/
36 -e "/\"$pid\"/s/$pid/LOGGER_PID/g" \
37 -e '/pmcd.pmlogger.port/s/value .*/value PORT/' \
38 -e '/pmcd.pmlogger.host/s/value ".*/value "HOST"/' \
39 -e '/pmcd.pmlogger.archive/s/value ".*/value "PATH"/'
42 # real QA test starts here
44 echo "=== just bin.sample ==="
46 _start_up_pmlogger
-s4 -L -c /dev
/null
-l $tmp.log
$tmp >$tmp.err
2>&1
49 pmlc
-ie <<End-of-File 2>&1 | _filter_pmlc
51 log mandatory on 200 msec sample.bin
53 _wait_pmlogger_end
$pid
55 pmdumplog
-im $tmp | _filter
57 pmval
-i "bin-100,bin-300,bin-500" -U $tmp sample.bin
2>$tmp.err | _filter
61 echo "=== hinv.ndisk, then bin.sample ==="
63 _start_up_pmlogger
-s5 -L -c /dev
/null
-l $tmp.log
$tmp
66 # split log requests across 2 pmlc invocations to help avoid a race
67 # at pmlogger where if the two requests arrive before the first one's
68 # timer event has been processed then the order of the two records in
69 # the archive may be reversed (issue occurs with "log early" changes
72 pmlc
-ie <<End-of-File 2>&1 | _filter_pmlc
74 log mandatory on once hinv.ndisk
76 pmlc
-ie <<End-of-File 2>&1 | _filter_pmlc
78 log mandatory on 200 msec sample.bin
80 _wait_pmlogger_end
$pid
82 pmdumplog
-im $tmp | _filter
84 pmval
-i "bin-100,bin-300,bin-500" -U $tmp sample.bin
2>$tmp.err | _filter