blob: 9705f49a54bad78b4329b464c5fc4aa27d38cb37 [file] [log] [blame]
#!/bin/sh
. ../support/simple_eval_tools.sh
HEADER SNMPv2c set failure to system.sysContact.0
SKIPIFNOT NETSNMP_NO_WRITE_SUPPORT
SKIPIF NETSNMP_DISABLE_SNMPV2C
SKIPIFNOT USING_MIBII_SYSTEM_MIB_MODULE
#
# Begin test
#
# standard V2C configuration: testcomunnity
snmp_write_access='all'
(cd ../default ; . ./Sv2cconfig)
STARTAGENT
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.4.0"
CHECK ".1.3.6.1.2.1.1.4.0 = STRING:"
CAPTURE "snmpset -r 0 -t 1 -On $SNMP_FLAGS -c testcommunity -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.4.0 s foobartestingbaz"
CHECK "Timeout: No Response"
STOPAGENT
CHECKAGENT 'Bad PDU type received'
FINISHED