This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 00043ff6c99f0c5c802d0829df8eb6e7293b4f73 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Wed Feb 21 18:09:32 2024 +0100 CAMEL-20410: documentation fixes for camel-snmp - Fixed samples - Fixed grammar and typos - Fixed punctuation - Added and/or fixed links - Converted to use tabs --- .../camel-snmp/src/main/docs/snmp-component.adoc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/components/camel-snmp/src/main/docs/snmp-component.adoc b/components/camel-snmp/src/main/docs/snmp-component.adoc index 388147b2764..47569a2ada3 100644 --- a/components/camel-snmp/src/main/docs/snmp-component.adoc +++ b/components/camel-snmp/src/main/docs/snmp-component.adoc @@ -43,7 +43,7 @@ and receiving traps. It can also be used to request information using GET method. -The response body type is org.apache.camel.component.snmp.SnmpMessage +The response body type is `org.apache.camel.component.snmp.SnmpMessage`. // component-configure options: START @@ -103,17 +103,20 @@ The result will be the following: </snmp> ----------------------------------------------------------- -As you maybe recognized there is one more result than -requested....1.3.6.1.2.1.1.1.0. + - This one is filled in by the device automatically in this special case. -So it may absolutely happen, that you receive more than you -requested...be prepared. +As you maybe recognized, there is one more result than +requested: `....1.3.6.1.2.1.1.1.0`. +The device fills in this one automatically in this special case. +So it may absolutely happen that you receive more than you +requested. +Be prepared. *OID starting with dot representation* ------------------------- .1.3.6.1.4.1.6527.3.1.2.21.2.1.50 ------------------------- -As you may notice, default snmpVersion is 0 which means *version1* in the endpoint if it is not set explicitly. Make sure you explicitly set snmpVersion which is not default value, of course in a case of where you are able to query SNMP tables with different versions. Other possible values are *version2c* and *version3*. +As you may notice, default `snmpVersion` is 0, which means `version1` in the endpoint if it is not set explicitly. +Make sure you explicitly set `snmpVersion` which is not default value, in a case of where you are able to query SNMP tables with different versions. +Other possible values are `version2c` and `version3`. == Examples @@ -130,8 +133,7 @@ snmp:127.0.0.1:162?protocol=udp&type=TRAP ----------------------------------------- You can get the community of SNMP TRAP with message -header 'securityName', + - peer address of the SNMP TRAP with message header 'peerAddress'. +header `securityName`, peer address of the SNMP TRAP with message header `peerAddress`. Routing example in Java: (converts the SNMP PDU to XML String)