T056agentv2cmintrap
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:1k
- #!/bin/sh
- . ../eval_tools.sh
- HEADER snmpv2c traps are sent by snmpd without notification mib support
- SKIPIFNOT USING_EXAMPLES_EXAMPLE_MODULE
- #
- # Begin test
- #
- # standard V1 configuration: testcomunnity
- . ./Sv3config
- CONFIGAGENT trap2sink localhost public $SNMP_SNMPTRAPD_PORT
- STARTTRAPD
- # initialize only the example mib, and not the notification mib stuff
- AGENT_FLAGS="$AGENT_FLAGS -Dexample,header_generic,add_trap,mib_init,callback -I example,usmUser,usmConf,vacm_vars"
- STARTAGENT
- #DELAY
- CAPTURE "snmpset -On -t 3 -r 0 $SNMP_FLAGS $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT ucdavis.254.8.0 i 1"
- STOPAGENT
- STOPTRAPD
- CHECKTRAPD "life the universe and everything"
- FINISHED