diff options
Diffstat (limited to 'testing/fulltests/read-only/T0141snmpv2csetfail_simple')
-rw-r--r-- | testing/fulltests/read-only/T0141snmpv2csetfail_simple | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/fulltests/read-only/T0141snmpv2csetfail_simple b/testing/fulltests/read-only/T0141snmpv2csetfail_simple new file mode 100644 index 0000000..9705f49 --- /dev/null +++ b/testing/fulltests/read-only/T0141snmpv2csetfail_simple @@ -0,0 +1,32 @@ +#!/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 |