summaryrefslogtreecommitdiff
path: root/testing/fulltests/default/T016snmpv2cgetfail_simple
blob: 1cd0e94ac2930c129738fa673b66780e7842ef53 (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
#!/bin/sh

#
# test snmpv2c get support by reading a variable
#

. ../support/simple_eval_tools.sh

HEADER for failure of SNMPv2c get with wrong community

SKIPIF NETSNMP_DISABLE_SNMPV2C
SKIPIFNOT USING_MIBII_SYSTEM_MIB_MODULE
SKIPIFNOT USING_MIBII_VACM_CONF_MODULE

#
# Begin test
#

# standard V2C configuration: testcomunnity
. ./Sv2cconfig

STARTAGENT

CAPTURE "snmpget -On $SNMP_FLAGS -c notavalidcommunity -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"

STOPAGENT

CHECK "Timeout"

FINISHED