Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
servicemix-snmp-2009.01
-
None
-
Patch Available
Description
The attached patch contains a new endpoint (called "trapReceiver") that receives traps from a device.
To configure the endpoint you must specify the address to use for snmp connection. The port must be 162, since that is the one used by SNMP to receive trap PDUs.
You can also specify a marshaler to process incoming traps. If no marshaler is specified, then the DefaultSnmpMarshaler will be used.
The endpoint configuration looks like this:
<snmp:trapReceiver service="test:trapReceiver"
endpoint="trapReceiver"
targetService="test:receiver"
listenAddress="udp:127.0.0.1/162">
<property name="marshaler">
<bean class="com.mycompany.MySNMPMarshaler" />
</property>
</snmp:trapReceiver>