| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
HEADER SNMPv2c set failure to system.sysContact.0 |
| 6 |
|
| 7 |
SKIPIFNOT NETSNMP_NO_WRITE_SUPPORT |
| 8 |
SKIPIF NETSNMP_DISABLE_SNMPV2C |
| 9 |
SKIPIFNOT USING_MIBII_SYSTEM_MIB_MODULE |
| 10 |
|
| 11 |
# |
| 12 |
# Begin test |
| 13 |
# |
| 14 |
|
| 15 |
# standard V2C configuration: testcomunnity |
| 16 |
snmp_write_access='all' |
| 17 |
(cd ../default ; . ./Sv2cconfig) |
| 18 |
STARTAGENT |
| 19 |
|
| 20 |
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" |
| 21 |
|
| 22 |
CHECK ".1.3.6.1.2.1.1.4.0 = STRING:" |
| 23 |
|
| 24 |
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" |
| 25 |
|
| 26 |
CHECK "Timeout: No Response" |
| 27 |
|
| 28 |
STOPAGENT |
| 29 |
|
| 30 |
CHECKAGENT 'Bad PDU type received' |
| 31 |
|
| 32 |
FINISHED |