| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
. ../support/simple_eval_tools.sh |
| 4 |
|
| 5 |
HEADER snmpv1 traps are sent by snmpd without notification mib support |
| 6 |
|
| 7 |
SKIPIFNOT USING_EXAMPLES_EXAMPLE_MODULE |
| 8 |
|
| 9 |
# |
| 10 |
# Begin test |
| 11 |
# |
| 12 |
|
| 13 |
# standard V1 configuration: testcommunity |
| 14 |
. ./Sv3config |
| 15 |
CONFIGAGENT trapsink ${SNMP_TRANSPORT_SPEC}:${SNMP_TEST_DEST}${SNMP_SNMPTRAPD_PORT} public |
| 16 |
CONFIGTRAPD authcommunity log public |
| 17 |
CONFIGTRAPD agentxsocket /dev/null |
| 18 |
|
| 19 |
STARTTRAPD |
| 20 |
|
| 21 |
# initialize only the example mib, and not the notification mib stuff |
| 22 |
AGENT_FLAGS="$AGENT_FLAGS -Dexample,header_generic,add_trap,mib_init,callback -I example,usmUser,usmConf,vacm_vars" |
| 23 |
STARTAGENT |
| 24 |
|
| 25 |
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" |
| 26 |
|
| 27 |
STOPAGENT |
| 28 |
|
| 29 |
STOPTRAPD |
| 30 |
|
| 31 |
CHECKTRAPD "Enterprise Specific Trap (99)" |
| 32 |
|
| 33 |
FINISHED |