Blame testing/fulltests/default/T130snmpv1vacmget_simple

Packit Service b38f0b
#!/bin/sh
Packit Service b38f0b
Packit Service b38f0b
. ../support/simple_eval_tools.sh
Packit Service b38f0b
Packit Service b38f0b
HEADER SNMPv1 vacm acceptance support
Packit Service b38f0b
SKIPIF NETSNMP_DISABLE_SNMPV1
Packit Service b38f0b
Packit Service b38f0b
#
Packit Service b38f0b
# Begin test
Packit Service b38f0b
#
Packit Service b38f0b
Packit Service b38f0b
# standard V1 configuration: testcommunity1 testcommunity2
Packit Service b38f0b
# testcommunity1 can access .1.3.6.1.2.1.1.1, others are denied
Packit Service b38f0b
# testcommunity2 can access all except .1.3.6.1.2.1.1.1
Packit Service b38f0b
# This case test for successful access
Packit Service b38f0b
snmp_version=v1
Packit Service b38f0b
. ./Svacmconfig
Packit Service b38f0b
Packit Service b38f0b
AGENT_FLAGS="$AGENT_FLAGS -I-winExtDLL"
Packit Service b38f0b
STARTAGENT
Packit Service b38f0b
Packit Service b38f0b
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" 
Packit Service b38f0b
Packit Service b38f0b
CHECKORDIE ".1.3.6.1.2.1.1.1.0 = STRING:"
Packit Service b38f0b
Packit Service b38f0b
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"
Packit Service b38f0b
Packit Service b38f0b
CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks: "
Packit Service b38f0b
Packit Service b38f0b
STOPAGENT
Packit Service b38f0b
Packit Service b38f0b
FINISHED