3 # Install/Remove of shping PMDA
5 # Copyright (c) 2015 Red Hat.
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard filters
17 [ -f $PCP_PMDAS_DIR/shping
/pmdashping
] || _notrun
"shping pmda not installed"
18 which nslookup >/dev
/null
2>&1 || _notrun
"nslookup is not installed"
22 _restore_pmda_install
$iam
30 /--- end \.\/sample\.conf ---/ { skip = 0 }
32 /--- start \.\/sample\.conf ---/{ print "[deleted]"; skip = 1 }
38 trap "_cleanup" 0 1 2 3 15
40 # real QA test starts here
41 _prepare_pmda_install
$iam
44 echo "=== default $iam agent installation ==="
45 $sudo .
/Remove
> $tmp.out
2>&1
46 $sudo .
/Install
</dev
/null
>>$tmp.out
2>&1
47 _filter_pmda_install
<$tmp.out | _filter
53 echo "... failed! ... here is the Install log ..."
58 echo "=== remove $iam agent ==="
59 $sudo .
/Remove
>$tmp.out
2>&1
60 _filter_pmda_remove
<$tmp.out