~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to testing/tests/T055agentv1mintrap

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. ../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: testcomunnity
 
14
. ./Sv3config
 
15
CONFIGAGENT trapsink 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
CAPTURE "snmpset -On $SNMP_FLAGS -v 3 -a MD5 -A initial_test_pass_auth -l anp -u initial $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT ucdavis.254.7.0 i 1"
 
24
 
 
25
STOPAGENT
 
26
 
 
27
STOPTRAPD
 
28
 
 
29
CHECKTRAPD "Enterprise Specific Trap (99)"
 
30
 
 
31
FINISHED