[SNMP4J] Unsupported PDU type

Yuri Krysko Yuri.Krysko at mcdean.com
Wed Apr 5 22:23:55 CEST 2017


Thank you Frank! I thought of it as well. It looks like one of the SNMP
clients that I am listening for traps from is badly implemented. Is there
any way to ignore this message and/or force snmp4j to process the trap as
SNMPv1 if the client sends such rogue messages?

I used wireshark to sniff communications between my IDE and remote SNMP
client, and I can confirm this nonsense: the trap comes as v2c, but it is
actually V1TRAP type.

On 4/5/17, 4:03 PM, "Frank Fock" <fock at agentpp.com> wrote:

>Hi Yuri,
>
>The PDU is a v2c PDU which does not allow SNMPv1 TRAP!
>
>Best regards,
>Frank
>
>> On 5. Apr 2017, at 17:37, Yuri Krysko <Yuri.Krysko at mcdean.com> wrote:
>>
>> Hello All,
>>
>> I am getting the following IOException when trying to decode received
>>SNMP trap
>>
>>
>> java.io.IOException: Unsupported PDU type: -92
>>
>> at org.snmp4j.PDU.decodeBER(PDU.java:566)
>>
>> at org.snmp4j.mp.MPv2c.prepareDataElements(MPv2c.java:201)
>>
>> at
>>org.snmp4j.MessageDispatcherImpl.dispatchMessage(MessageDispatcherImpl.ja
>>va:278)
>>
>> at
>>org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.jav
>>a:387)
>>
>> at
>>org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.jav
>>a:347)
>>
>> at
>>org.snmp4j.util.MultiThreadedMessageDispatcher$MessageTask.run(MultiThrea
>>dedMessageDispatcher.java:182)
>>
>> at org.snmp4j.util.ThreadPool$TaskManager.run(ThreadPool.java:260)
>>
>>
>> To my knowledge, PDU type -92 is supported and denotes V1TRAP. Could
>>anyone advise?
>>
>> Thanks !
>>
>> ________________________________
>>
>> LEGAL DISCLAIMER: M.C. Dean, Inc. and its subsidiaries considers this
>>e-mail and any files transmitted with it to be protected, proprietary or
>>privileged information intended solely for the use of the named
>>recipient(s). Any disclosure of this material or the information
>>contained herein, in whole or in part, to anyone outside of the intended
>>recipient or affiliates is strictly prohibited. M. C. Dean, Inc. accepts
>>no liability for the content of this e-mail or for the consequences of
>>any actions taken on the basis of the information contained in it,
>>unless that information is subsequently confirmed in writing. Employees
>>of M.C. Dean, Inc. are instructed not to infringe on any rights of the
>>recipient; any such communication violates company policy. If you are
>>not the intended recipient, any disclosure, copying, distribution, or
>>action taken or omitted in reliance on this information is strictly
>>prohibited by M.C. Dean, Inc.; please notify the sender immediately by
>>return e-mail, delete this communication and destroy all copies.
>> _______________________________________________
>> SNMP4J mailing list
>> SNMP4J at agentpp.org
>> https://oosnmp.net/mailman/listinfo/snmp4j
>


________________________________

LEGAL DISCLAIMER: M.C. Dean, Inc. and its subsidiaries considers this e-mail and any files transmitted with it to be protected, proprietary or privileged information intended solely for the use of the named recipient(s). Any disclosure of this material or the information contained herein, in whole or in part, to anyone outside of the intended recipient or affiliates is strictly prohibited. M. C. Dean, Inc. accepts no liability for the content of this e-mail or for the consequences of any actions taken on the basis of the information contained in it, unless that information is subsequently confirmed in writing. Employees of M.C. Dean, Inc. are instructed not to infringe on any rights of the recipient; any such communication violates company policy. If you are not the intended recipient, any disclosure, copying, distribution, or action taken or omitted in reliance on this information is strictly prohibited by M.C. Dean, Inc.; please notify the sender immediately by return e-mail, delete this communication and destroy all copies.



More information about the SNMP4J mailing list