3 # find metrics in the QA archives
5 # command line args are alternate patterns matched in the output
6 # from pminfo -d ... so metric names and metric descriptors
11 trap "rm -f $tmp.*; exit \$sts" 0 1 2 3 15
15 echo >&2 "Usage: `basename $0` [options] pat ..."
16 echo >&2 " -a search archives [default]"
17 echo >&2 " -h search localhost live metrics"
38 shift `expr $OPTIND - 1`
60 srclist
="`echo src/*.0 archives/*.0`"
69 pminfo
-d -a $src 2>&1
85 |
egrep "$pat" >$tmp.out
91 pmdumplog
-l $src >$tmp.info
92 vers
=`sed -n <$tmp.info -e '/Log Format Version/{
97 host=`sed -n <$tmp.info -e '/ from host /{
101 echo "=== `basename $src .0` (V.$vers) host: $host ==="
102 grep commencing
$tmp.info
103 grep ending
$tmp.info
104 sed <$tmp.out
-e "s/^/ /"
106 echo "=== `hostname` ==="
107 sed <$tmp.out
-e "s/^/ /"