[SNMP4J] TableUtils - STATUS_WRONG_ORDER = -2; endOfMibView
Harsha H R
harsha.hr at calsoftlabs.com
Fri Jul 18 09:45:48 CEST 2014
Hi all,
I am trying to fetch a snmp table using TableUtils of snmp4j.
The response to the get-bulk request issued by TableUtils is as follows:
-Simple Network Management Protocol
version: v2c (1)
community: public
-data: get-response (2)
get-response
request-id: 39446983
error-status: noError (0)
error-index: 0
-variable-bindings: 14 items
+1.3.6.1.4.1.7428.1.4.1.1.1.3.1.1:
+1.3.6.1.4.1.7428.1.4.1.1.1.3.1.2:
+1.3.6.1.4.1.7428.1.4.1.1.1.4.1.1:
+1.3.6.1.4.1.7428.1.4.1.1.1.4.1.2:
+1.3.6.1.4.1.7428.1.4.1.1.1.5.1.1:
+1.3.6.1.4.1.7428.1.4.1.1.1.5.1.2:
+1.3.6.1.4.1.7428.1.4.10.1.1.2.1:
+1.3.6.1.4.1.7428.1.4.10.1.1.2.1: endOfMibView
+1.3.6.1.4.1.7428.1.4.1.1.1.4.1.1:
+1.3.6.1.4.1.7428.1.4.1.1.1.4.1.2:
+1.3.6.1.4.1.7428.1.4.1.1.1.5.1.1:
+1.3.6.1.4.1.7428.1.4.1.1.1.5.1.2:
+1.3.6.1.4.1.7428.1.4.10.1.1.2.1:
+1.3.6.1.4.1.7428.1.4.10.1.1.2.1: endOfMibView
The table event reports STATUS_WRONG_ORDER saying the response is not in
lexicographical order and is as below:
org.snmp4j.util.TableEvent[index=null,vbs=null,status=-2,exception=null,repo
rt=null]
I guess this is because in the response to get-bulk request the oid
'1.3.6.1.4.1.7428.1.4.10.1.1.2.1' is repeated as end of MIB is reached.
As a result I am not able to fetch the table contents.
Any idea on how to resolve this or a possible work around ?
Regards,
Harsha
More information about the SNMP4J
mailing list