3 # Exercise Cisco PMDA parser
5 # Copyright (c) 2015 Red Hat.
6 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 [ -f $PCP_PMDAS_DIR/cisco
/pmdacisco
] || _notrun
"cisco pmda not 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
33 intf
=`$PCP_PMDAS_DIR/cisco/probe -N $args $file 2>/dev/null`
36 echo "$file: Argh ... cannot extract list of interfaces!"
44 $PCP_PMDAS_DIR/cisco
/parse
-N $args 2>&1 \
47 -e '/Sleeping while sproc does the work/d'
50 # real QA test starts here
52 cat <<'End-of-File' | while read file args
56 Fddi-2-0 -Ulogin -Psecret
61 FastEthernet-1-0 -s cmd#
66 Vlan-1 -Ulogin -Psecret -s bgo-sw20#
67 Vlan-160 -Ulogin -Psecret -s bgo-sw20#
68 FastEthernet-0-5 -Ulogin -Psecret -s bgo-sw20#
69 FastEthernet-0-6 -Ulogin -Psecret -s bgo-sw20#
70 GigabitEthernet-0-1 -Ulogin -Psecret -s bgo-sw20#