~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to testing/tests/T131snmpv2cvacmget

  • 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 vacm acceptance support
 
6
 
 
7
#
 
8
# Begin test
 
9
#
 
10
 
 
11
 
 
12
# standard V1 configuration: testcommunity1 testcommunity2
 
13
# testcommunity1 can access .1.3.6.1.2.1.1.1, others are denied
 
14
# testcommunity2 can access all except .1.3.6.1.2.1.1.1
 
15
# This case test for successful access
 
16
 
 
17
snmp_version=v2c
 
18
. ./Svacmconfig
 
19
 
 
20
STARTAGENT
 
21
 
 
22
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity1 -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.1.0" 
 
23
 
 
24
CHECKORDIE ".1.3.6.1.2.1.1.1.0 = STRING:"
 
25
 
 
26
CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity2 -v 2c $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
 
27
 
 
28
CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks: "
 
29
 
 
30
 
 
31
STOPAGENT
 
32
 
 
33
FINISHED