bc23626000ae02165ca033bc2d9218679e50dd28
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T0160snmpv2cbulkget
1 #!/bin/sh
2
3 . ../eval_tools.sh
4
5 HEADER SNMPv2 bulkget of system components
6
7 #
8 # Begin test
9 #
10
11 # standard V2 configuration: testcomunnity
12 . ./Sv2cconfig
13
14 STARTAGENT
15
16 CAPTURE "snmpbulkget $SNMP_FLAGS -v2c -On -Cn1 -Cr2 -c testcommunity 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