[SNMP4J] getTable for Rows

Frank Fock fock at agentpp.com
Fri Mar 24 01:00:51 CET 2006



Marco.Bresciani at alcatel.it wrote:
> Frank Fock <fock at agentpp.com>
> 21/03/2006 20.28
>  
>         To:     Marco BRESCIANI/IT/ALCATEL at ALCATEL
>         cc:     snmp4j at agentpp.org
>         Subject:        Re: [SNMP4J] getTable for Rows
>> Use "4" as lower bound for "4.0" and "4.0.2^31-1" for "4.1".
> 
> Oh... thanks.
> 
>> SNMP4J 1.7 has also the OID.predecessor() and OID.successor()
>> methods to easily compute predecessor and successor OIDs.
> 
> I've just tried SNM4J v1.7RC2 and above methods seems not correct... I'm 
> checking problems. If I have a rowIndex=4 precedessor gives me back 
> 3.-1.-1.-1 ... ... -1 (128 dotted fields). And retrieved data are not 
> correct.
> 

The computed predecessor is correct (-1 == 2^32-1) and also displayed
correctly by OID.toString(). When the agent does not properly return
the data, then the agent is most likely buggy. It probably cannot
handle OID sub-identifiers > 2^31 or long OIDs (the maximum number
of sub-ids allowed is 128).

Best regards,
Frank

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list