summaryrefslogtreecommitdiff
path: root/testing/tests/T200snmpv2cwalkall
blob: 78fac68eb7fab380392a91f6e4459c0f898824dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

. ../eval_tools.sh

HEADER "full snmpwalk (SNMPv2c) against agent (may take time)"

if test `uname -s` = "HP-UX" ; then
    if test `id -u` != "0" ; then
        # The agent needs to be run as root - else force skip
        SKIP
    fi
fi

SKIPIF NETSNMP_DISABLE_SNMPV2C

# make sure snmpwalk can be executed
SNMPWALK="${SNMP_UPDIR}/apps/snmpwalk"
[ -x "$SNMPWALK" ] || SKIP

snmp_version=v2c
. ./Sv2cconfig

#
# Begin test
#

# higher timeout/retry values for safety
TIMEOUT=10
RETRY=5

STARTAGENT

CAPTURE "$SNMPWALK $SNMP_FLAGS -$snmp_version -c testcommunity -t $TIMEOUT -r $RETRY $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1"
CHECKANDDIE "= Wrong Type (should be "
CHECKORDIE "No more variables left in this MIB View"

STOPAGENT
FINISHED