4 # pmlogreduce command line arguments
6 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 which pmlogreduce
>/dev
/null
2>&1 || _notrun
"No pmlogreduce binary installed"
19 status
=0 # success is the default!
20 $sudo rm -rf $tmp.
* $seq.full
21 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 # indom 129.0 -> (0x9461d70)
26 sed -e '/indom .* ->/s/0x[0-9a-f][0-9a-f]*/ADDR/'
29 # real QA test starts here
31 # pmdumplog -z -L archives/conn20070309.0 reports ...
33 # commencing Fri Mar 9 00:10:47.856 2007
34 # ending Sat Mar 10 00:10:17.859 2007
37 echo "=============================================="
38 echo "-S +8h -T +3h -t 20min ... expect 10 results"
39 echo "=============================================="
41 pmlogreduce
-D appl0
-z -S +8h
-T+3h
-t 20min archives
/conn20070309.0
$tmp 2>&1 \
46 echo "=============================================="
47 echo "-A 15m -S +8h -T +2h -t 15min ... expect 9 results"
48 echo "=============================================="
50 pmlogreduce
-D appl0
-z -A 15m
-S +8h
-T+2h
-t 15min archives
/conn20070309.0
$tmp 2>&1 \
55 echo "=============================================="
56 echo "-Z UTC -S @16:00:00 -T +2h -t 15min ... expect 9 results"
57 echo "=============================================="
59 pmlogreduce
-D appl0
-Z UTC
-S @
16:00:00 -T+2h
-t 15min archives
/conn20070309.0
$tmp 2>&1 \
64 echo "=============================================="
65 echo "-s 6 ... expect 6 results"
66 echo "=============================================="
68 pmlogreduce
-s 6 archives
/conn20070309.0
$tmp