| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
HEADER SNMPv3 vacm denial support |
| 6 |
|
| 7 |
# |
| 8 |
# Begin test |
| 9 |
# |
| 10 |
|
| 11 |
# Configuration: |
| 12 |
#initial1 can access .1.3.6.1.2.1.1.1, deny others |
| 13 |
#initial2 can access all except .1.3.6.1.2.1.1.1 |
| 14 |
#This case test for denied access |
| 15 |
|
| 16 |
snmp_version=v3 |
| 17 |
. ./Sv3vacmconfigMD5 |
| 18 |
|
| 19 |
STARTAGENT |
| 20 |
|
| 21 |
CAPTURE "snmpget -On $SNMP_FLAGS -v3 -a MD5 -A initial_test_pass_auth -u initial1 -l anp $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0" |
| 22 |
|
| 23 |
CHECKORDIE ".1.3.6.1.2.1.1.3.0 = No Such Object available on this agent at this OID" |
| 24 |
|
| 25 |
|
| 26 |
CAPTURE "snmpget -On $SNMP_FLAGS -v3 -a MD5 -A initial_test_pass_auth -u initial2 -l anp $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.1.0" |
| 27 |
|
| 28 |
CHECKORDIE ".1.3.6.1.2.1.1.1.0 = No Such Object available on this agent at this OID" |
| 29 |
|
| 30 |
STOPAGENT |
| 31 |
|
| 32 |
FINISHED |