| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
HEADER SNMPv2 vacm acceptance support |
| 6 |
|
| 7 |
SKIPIF NETSNMP_DISABLE_SNMPV2C |
| 8 |
|
| 9 |
# |
| 10 |
# Begin test |
| 11 |
# |
| 12 |
|
| 13 |
|
| 14 |
# standard V1 configuration: testcommunity1 testcommunity2 |
| 15 |
# testcommunity1 can access .1.3.6.1.2.1.1.1, others are denied |
| 16 |
# testcommunity2 can access all except .1.3.6.1.2.1.1.1 |
| 17 |
# This case test for successful access |
| 18 |
|
| 19 |
snmp_version=v2c |
| 20 |
. ./Svacmconfig |
| 21 |
|
| 22 |
STARTAGENT |
| 23 |
|
| 24 |
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity1 -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.1.0" |
| 25 |
|
| 26 |
CHECKORDIE ".1.3.6.1.2.1.1.1.0 = STRING:" |
| 27 |
|
| 28 |
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity2 -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0" |
| 29 |
|
| 30 |
CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks: " |
| 31 |
|
| 32 |
|
| 33 |
STOPAGENT |
| 34 |
|
| 35 |
FINISHED |