Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T0220snmpv3bulkget
1 #!/bin/sh
2
3 . ../eval_tools.sh
4
5 HEADER SNMPv3 bulkget of system
6
7 #
8 # Begin test
9 #
10
11 # standard V3 configuration: 
12 . ./Sv3config
13
14 STARTAGENT
15
16 CAPTURE "snmpbulkget $SNMP_FLAGS -v3 -On -Cn1 -Cr2 -a MD5 -A initial_test_pass_auth -l anp -u initial  udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.4 .1.3.6.1.2.1.1"
17
18 STOPAGENT
19
20 CHECKORDIE ".1.3.6.1.2.1.1.4.0 = STRING:"
21 CHECKORDIE ".1.3.6.1.2.1.1.1.0 = STRING:"
22 CHECKORDIE ".1.3.6.1.2.1.1.2.0 = OID:"
23
24 CHECK ".1.3.6.1.2.1.1.3.0"
25 if [ "$snmp_last_test_result" != 0 ] ; then
26     return_value=1
27     FINISHED
28 fi
29
30 CHECK ".1.3.6.1.2.1.1.5.0"
31 EXPECTRESULT 0
32 if [ "$snmp_last_test_result" != 0 ] ; then
33     return_value=1
34     FINISHED
35 fi
36
37 FINISHED