Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
Available as of Camel 2.1
The snmp: component gives you the ability to poll SNMP capable devices or receiving traps.
Maven users will need to add the following dependency to their
The component supports polling OID values from an SNMP enabled device and receiving traps.
You can append query options to the URI in the following format,
The result of a poll
Given the situation, that I poll for the following OIDs:
The result will be the following:
As you maybe recognized there is one more result than requested....184.108.40.206.220.127.116.11.0.
Polling a remote device:
Setting up a trap receiver (Note that no OID info is needed here!):
From Camel 2.10.0, you can get the community of SNMP TRAP with message header 'securityName',
Routing example in Java: (converts the SNMP PDU to XML String)