[SNMP4J] TableUtils - STATUS_WRONG_ORDER = -2; endOfMibView

Frank Fock fock at agentpp.com
Fri Jul 18 20:39:42 CEST 2014


Hi Harsha,

You will have to write your own TableUtils class to change this behavior.
But careful, there are many buggy agents like yours in the field.

In your case, the bug is harmless (although it violates the standard).

But other agents return lesser OIDs which can cause endless loops.
Therefore, this check cannot be deactivated.

Best regards,
Frank

Am 18.07.2014 09:45, schrieb Harsha H R:
> 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
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://oosnmp.net/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list