3 # handling of wrapping counters with pmlogreduce
5 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 which pmlogreduce
>/dev
/null
2>&1 || _notrun
"No pmlogreduce binary installed"
20 ln $seq.out.
$size $seq.out ||
exit 1
22 status
=0 # success is the default!
24 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
26 # real QA test starts here
33 status
=0 # success is the default!
35 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
37 # real QA test starts here
39 for interval
in 2sec
5sec
15sec
43 pmlogreduce
-t $interval archives
/uwrap
$tmp
44 echo "-- raw reduce -t $interval --"
45 pmval
-z -r -w 15 -f 0 -t $interval -U $tmp sample.wrap.ulong
2>&1 \
47 echo "-- rate converted, reduce -t $interval --"
48 pmval
-z -w 15 -f 0 -t $interval -a $tmp sample.wrap.ulong
2>&1 \
53 echo "-- raw input archive --"
54 pmval
-z -r -w 15 -f 0 -U archives
/uwrap sample.wrap.ulong
57 echo "-- input archive, rate converted with PCP_COUNTER_WRAP set --"
59 export PCP_COUNTER_WRAP
60 pmval
-z -w 15 -f 0 -a archives
/uwrap
-t 1sec sample.wrap.ulong
63 echo "-- input metric descriptor --"
64 pminfo
-d -a archives
/uwrap sample.wrap.ulong
66 echo "-- output metric descriptor --"
67 pminfo
-d -a $tmp sample.wrap.ulong