Debian Codegraph @

testing/fulltests/default/T130snmpv1vacmget_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER SNMPv1 vacm acceptance support
6 SKIPIF NETSNMP_DISABLE_SNMPV1
7
8 #
9 # Begin test
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 snmp_version=v1
17 . ./Svacmconfig
18
19 AGENT_FLAGS="$AGENT_FLAGS -I-winExtDLL"
20 STARTAGENT
21
22 CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity1 -v 1 $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 1 $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 STOPAGENT
31
32 FINISHED