~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to testing/tests/T0160snmpv2cbulkget

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$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