3 # pmlogmerge shall abort if descriptors non consistent across archives
6 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
19 $sudo $PCP_RC_DIR/pcp restart
>/dev
/null
2>&1
25 status
=0 # success is the default!
27 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # force sample PMDA back to a sane state
32 $sudo $PCP_RC_DIR/pmcd restart
>/dev
/null
2>&1
41 # create second archive and try to merge 'em
44 rm -f $tmp.new.
* $tmp.out
45 echo "log mandatory on 1sec { sample.dynamic.meta }" \
46 | pmlogger
-l $tmp.log
-s 3 $tmp.new
48 pmlogextract
$tmp.base
$tmp.new
$tmp.out
2>&1 \
52 echo "Oops ... should not have created an output archive!"
54 echo "=== Original metadata ==="
55 pminfo
-d -a $tmp.base sample.dynamic.meta.metric
57 echo "=== New metadata ==="
58 pminfo
-d -a $tmp.new sample.dynamic.meta.metric
60 echo "=== Merged metadata ==="
61 pminfo
-d -a $tmp.out sample.dynamic.meta.metric
63 echo "=== Dump of output archive ==="
70 echo "Check initial metric set up ..."
71 pminfo
-f sample.dynamic.meta
73 echo "log mandatory on 1sec { sample.dynamic.meta }" \
74 | pmlogger
-l $tmp.log
-s 3 $tmp.base
76 # real QA test starts here
78 echo "Change metric type ..."
79 pmstore sample.dynamic.meta.pmdesc.
type 3
82 echo "Change metric indom ..."
83 pmstore sample.dynamic.meta.pmdesc.indom
42
86 echo "Change metric semantics ..."
87 pmstore sample.dynamic.meta.pmdesc.sem
0
90 echo "Change metric units ..."
91 pmstore sample.dynamic.meta.pmdesc.units
0