and added files
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T058agentauthtrap
1 #!/bin/sh
2
3 . ../eval_tools.sh
4
5 HEADER authentication failure traps are sent by snmpd
6
7 #
8 # Begin test
9 #
10
11 # standard V1 configuration: testcomunnity
12 . ./Sv1config
13 # add in a v1 trap sink
14 CONFIGAGENT trapsink localhost public $SNMP_SNMPTRAPD_PORT
15 CONFIGAGENT authtrapenable 1
16
17 STARTTRAPD
18
19 STARTAGENT
20
21 # give the agent more time to start up.  We only want to fire one
22 # request (retries = 0) to make sure only one trap is sent.
23 #DELAY
24 CAPTURE "snmpget -On -r 0 -t 5 $SNMP_FLAGS -v 1 -c wrongcommunity udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
25
26 STOPAGENT
27
28 STOPTRAPD
29
30 CHECKTRAPD "Authentication Failure Trap"
31
32 FINISHED