and added files
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T001snmpv1get
1 #!/bin/sh
2
3 . ../eval_tools.sh
4
5 HEADER SNMPv1 support
6
7 #
8 # Begin test
9 #
10
11 # standard V1 configuration: testcomunnity
12 . ./Sv1config
13
14 STARTAGENT
15
16 CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 1 udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
17
18 CHECKORDIE ".1.3.6.1.2.1.1.3.0 = Timeticks:"
19
20 CAPTURE "snmpgetnext -On $SNMP_FLAGS -c testcommunity -v 1 udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3"
21
22 CHECKORDIE ".1.3.6.1.2.1.1.3.0 = Timeticks:"
23
24 CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 1 udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.1"
25
26 CHECKORDIE "Error in packet"
27
28 CAPTURE "snmpget -On $SNMP_FLAGS -c notavalidcommunity -v 1 udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
29
30 CHECKORDIE "Timeout"
31
32 STOPAGENT
33
34 FINISHED