blob: 44b219ed5667523aa2ee7bd554db22c3eabc678a [file] [log] [blame]
#!/bin/sh
. ../support/simple_eval_tools.sh
HEADER snmpv1 traps are sent by snmpd API
SKIPIFNOT USING_EXAMPLES_EXAMPLE_MODULE
SKIPIFNOT HAVE_SIGHUP
#
# Begin test
#
# standard V1 configuration: testcomunnity
. ./Sv3config
CONFIGAGENT trapsink ${SNMP_TRANSPORT_SPEC}:${SNMP_TEST_DEST}${SNMP_SNMPTRAPD_PORT} public
CONFIGTRAPD authcommunity log public
CONFIGTRAPD agentxsocket /dev/null
STARTTRAPD
AGENT_FLAGS="$AGENT_FLAGS -Dexample,header_generic,add_trap"
STARTAGENT
CAPTURE "snmpset -On $SNMP_FLAGS $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.4.1.2021.254.7.0 i 1"
STOPAGENT
STOPTRAPD
CHECKTRAPD "Enterprise Specific Trap (99)"
FINISHED