Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T056agentv2cmintrap
1 #!/bin/sh
2
3 . ../eval_tools.sh
4
5 HEADER snmpv2c traps are sent by snmpd without notifcation mib support
6
7 SKIPIFNOT USING_EXAMPLES_EXAMPLE_MODULE
8
9 #
10 # Begin test
11 #
12
13 # standard V1 configuration: testcomunnity
14 . ./Sv3config
15 CONFIGAGENT trap2sink localhost public $SNMP_SNMPTRAPD_PORT
16
17 STARTTRAPD
18
19 # initialize only the example mib, and not the notification mib stuff
20 AGENT_FLAGS="$AGENT_FLAGS -Dexample,header_generic,add_trap,mib_init,callback -I example,usmUser,vacm_vars"
21 STARTAGENT
22
23 #DELAY
24 CAPTURE "snmpset -On -t 3 -r 0 $SNMP_FLAGS -v 3 -a MD5 -A initial_test_pass_auth -l anp -u initial udp:localhost:$SNMP_SNMPD_PORT ucdavis.254.8.0 i 1"
25
26 STOPAGENT
27
28 STOPTRAPD
29
30 CHECKTRAPD "life the universe and everything"
31
32 FINISHED