[SNMP4J] getTable for Rows

Fabian Nart fabian.nart at ergon.ch
Tue Mar 21 09:37:39 CET 2006


Ciao Marco

 > 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.

 > /* 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.

Fabian





More information about the SNMP4J mailing list