pmrep: update TODO, man page
[pcp.git] / qa / 131
blobfa20397228c9d06fe0508cc643564dc3e6fc5abe
1 #! /bin/sh
2 # PCP QA Test No. 131
3 # values for PMCD_CONNECT_TIMEOUT < 1 ??
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.check
14 . ./common.config
16 [ -z "$PCPQA_FAR_PMCD" -o "$PCPQA_FAR_PMCD" = "far_away_pmcd" ] && \
17 _notrun 'PCPQA_FAR_PMCD is not set in ./common.config'
19 trap "rm -f $tmp.*; exit 0" 0 1 2 3 15
21 # real QA test starts here
22 farhost=$PCPQA_FAR_PMCD
24 # was 1msec, but that was too short of $PCPQA_FAR_PMCD was not that
25 # far away! Changed to 10usec, 1 Jan 2003
27 PMCD_CONNECT_TIMEOUT=0.00001
28 export PMCD_CONNECT_TIMEOUT
30 echo "Expect: Connection timed out"
31 echo "The far host is $farhost" >$seq.full
32 pminfo -f -h $farhost pmcd 2>&1 \
33 | sed \
34 -e "s/$farhost/HOST/g" \
35 -e 's/Operation timed out/Connection timed out/' \
36 -e 's/Timeout waiting for a response from PMCD/Connection timed out/'