blob: 6e3b814c5c83e8987d535621abfb2e57cd5fdd79 [file] [log] [blame]
#!/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
#
# 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