[SNMP4J] Not Receiving Report PDUs on event.getResponse()
Brent Ditri
bditri at gmail.com
Tue Aug 25 01:25:55 CEST 2015
Hello,
I am using SNMP4J's SNMPv3 implementation to perform get requests for
switches and routers in my network. I am sending these request
asynchronously via ResponseListener.
When SNMPv3 is working as intended to the devices I am able to call
event.getResponse when onResponse is called via the examples given from the
website. However, when my switch sends back a Report indicating an error I
get null when calling event.getResponse().
In wireshark I see a get-request go out, and immediately a report to
(1.3.6.1.2.1.1.3.0) is sent back (in this case a usmStatsNotInTimeWindows
error report is getting sent back). My expectation when calling
event.getResponse() was to receive a PDU of type PDU.REPORT and be able to
parse this PDU for the specific error message. Instead I get a null
returned which according to javadocs is indicative of a timeout error;
however, that is not in actuality what is happening. I would like to be
able to log specific USM errors reported by the device, but without
receiving the Report PDU when onResponse() is called I'm not sure how I can
go about doing it.
Has anyone else encountered this problem? Any help would be greatly
appreciated!
Thanks much for your time,
Brent
More information about the SNMP4J
mailing list