#! /bin/sh # PCP QA Test No. 633 # excessive round trips to pmcd from pmlogger # # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved. # seq=`basename $0` echo "QA output created by $seq" # get standard environment, filters and checks . ./common.product . ./common.filter . ./common.check rm -f $seq.out if [ $PCP_VER -ge 3804 ] then ln $seq.out.2 $seq.out || exit 1 else ln $seq.out.1 $seq.out || exit 1 fi nsamples=2 [ $PCP_VER -ge 3811 ] && nsamples=1 # improved pmlogger fetching status=0 # success is the default! trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 _filter() { sed -n \ -e '/PDU:/{ s/ fd=.*// s/\[[0-9]*]// p }' \ | sed -e '/Piggy-back PDU:/d' \ | LC_COLLATE=POSIX sort \ | uniq -c \ | sed \ -e 's/^ *//' \ -e 's/ / /' } # real QA test starts here cat <