[SNMP4J] getTable for Rows
Frank Fock
fock at agentpp.com
Tue Mar 21 12:15:15 CET 2006
Hi Marco,
Your code works by accident only (when the full OID is
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.
Best regards,
Frank
Marco.Bresciani at alcatel.it wrote:
> Fabian Nart <fabian.nart at ergon.ch>
> Sent by: snmp4j-bounces at agentpp.org
> 21/03/2006 09.37
>
> To: snmp4j at agentpp.org
> cc:
> Subject: Re: [SNMP4J] getTable for Rows
>> Ciao Marco
>
> :-) Ciao,
>
>>> but... how can I use
>>> lowerBoundIndex and upperBoundIndex? Do I have to use the single
>> index value? Do I have to use the complete OID?!
>>
>> You have to use the indexes only.
>
> Thank you but... it does not seem to work. I've written this code:
>
> results = table.getTable(device, indexes,
> new OID((String) (tableEntryOid + "." +
> indexOid)),
> null);
>
> using a full OID... and it worked. It did not when I used the simple index
> number.
>
>>> /* table GETting */
>>> results = table.getTable(device, indexes, new OID((String) (indexOid
>> + 1)), new OID((String) (indexOid)));
>>
>> Look carefully at the signature of the method you call:
>> getTable(Target target, OID[] columnOIDs, OID lowerBoundIndex, OID
>> upperBoundIndex)
>>
>> The third argument is LOWERboundIndex, the fourth is UPPERboundIndex,
>> you are using it the other way round.
>
> Thank you! So, to retrieve "rowIndex" I have to use "rowIndex - 1" as
> lowerBound and "rowIndex" as upperBound... right?!
>
> Thank you for any help... I'm in a hurry to end this feature only and then
> I've finished my huge conversion from a proprietary (and very
> heavy-weighted) solution to SNMP4J! I have to finish today! =8-O
>
> Marco
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list