[
https://issues.apache.org/jira/browse/CAMEL-5255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Barber updated CAMEL-5255:
-----------------------------------
Attachment: SnmpConverters.java.patch.2012-05-09T00+0100
This patch uses more sane output for v1 PDU and adds an attribute to the snmp
tag so the user knows it's a SNMP V1 PDU, example XML for a v1 PDU:
{code}
<snmp
messageType="v1"><entry><enterprise>0.0</enterprise></entry><entry><agent-addr>1.2.3.4</agent-addr></entry><entry><generic-trap>1</generic-trap></entry><entry><specific-trap>0</specific-trap></entry><entry><time-stamp>10</time-stamp></entry><entry><oid>0.0</oid><value>foo</value></entry><entry><oid>0.0</oid><value>bar</value></entry></snmp>
{code}
generated by net-snmp command:
{code}
snmptrap -v 1 -c publicasd 127.0.0.1:1162 0 1.2.3.4 1 0 10 0 s 'foo' 0 s
'bar'
{code}
> Add all SNMPv1 TRAP PDU information to message body for camel-snmp component
> ----------------------------------------------------------------------------
>
> Key: CAMEL-5255
> URL: https://issues.apache.org/jira/browse/CAMEL-5255
> Project: Camel
> Issue Type: Improvement
> Components: camel-snmp
> Affects Versions: 2.10.0
> Reporter: Jonathan Barber
> Priority: Minor
> Attachments: SnmpConverters.java.patch,
> SnmpConverters.java.patch.2012-05-09T00+0100
>
>
> The attached patch captures additional information available in an SNMPv1
> TRAP PDU (enterprise trap ID, agent-addr, generic trap ID, specific trap ID,
> and system uptime) to the camel-snmp message body.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira