[SNMP4J] getTable for Rows
Frank Fock
fock at agentpp.com
Tue Mar 21 20:28:50 CET 2006
Hi Marco,
Marco.Bresciani at alcatel.it wrote:
> >less or equal to the lowerBoundIndex). You need to use the
> >index only. But the lowerBoundIndex is not included
> >in the result. You have thus to use the predecessor
> >index of the row you are looking for.
>
> Another couple of questions about this. If I have a normal integer
> value, say "4", I can set lowbound to 3 and highbound to 4. Okay.
>
> - what if my rowindex is "0"? I think it should not happen but... who
> knows...
>
Then you set the lowerBoundIndex to null (no lower bound).
> - I found some difficulties because MIB I'm working on uses these
> strange "4.0" and "4.1" as rowindex! Then... how/can I set low and high?
>
Use "4" as lower bound for "4.0" and "4.0.2^31-1" for "4.1".
SNMP4J 1.7 has also the OID.predecessor() and OID.successor()
methods to easily compute predecessor and successor OIDs.
Best regards,
Frank
More information about the SNMP4J
mailing list