[ 
https://issues.apache.org/activemq/browse/SMXCOMP-612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53565#action_53565
 ] 

Jean-Baptiste Onofré commented on SMXCOMP-612:
----------------------------------------------

I have added the patch with the following changes:
- the endpoint name is trap-consumer (to be compliant with others endpoints 
nomenclature)
- the unit test use the 1662 port (in place of 162) as port < 1024 is not 
allowed for normal users on Unix systems.

I update the wiki page before closing this task.

> SNMP Trap Reception Endpoint patch
> ----------------------------------
>
>                 Key: SMXCOMP-612
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-612
>             Project: ServiceMix Components
>          Issue Type: Improvement
>          Components: servicemix-snmp
>    Affects Versions: servicemix-snmp-2009.01
>            Reporter: Gema Perdiguero
>            Assignee: Jean-Baptiste Onofré
>             Fix For: servicemix-snmp-2009.02
>
>         Attachments: servicemix-snmp-trapReceiverPatch.txt
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to