Debian Codegraph @

testing/fulltests/default/T056agentv2cmintrap_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER snmpv2c 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 trap2sink ${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 #DELAY
26 CAPTURE "snmpset -On -t 3 -r 0 $SNMP_FLAGS $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.4.1.2021.254.8.0 i 1"
27
28 STOPAGENT
29
30 STOPTRAPD
31
32 CHECKTRAPD "life the universe and everything"
33
34 FINISHED