[SNMP4J] MOTableRow.getValue(int) question

Frank Fock fock at agentpp.com
Fri Mar 3 08:46:12 CET 2006


Hello Matthias,

when there is no value, simply return a Java "null".
In that case, the value will be skipped for GETNEXT and
GETBULK. For GET a noSuchInstance exception is returned.

Best regards,
Frank

Matthias Wiesmann wrote:
> Hello everybody,
> 
> I am currently implementing a part of the Alarm MIB (RFC 3877) and one
> of the table contains a representation of notification bindings. The
> table implements a kind of a 'union' structure in the sense that one
> column decides the actual type, and then there is a column for each
> type (OctetString, OID, etc), but only the column that matches the
> actual types contains the value. Thus, this table is mostly empty.
> 
> My question is, what value is getValue() supposed to return when there
> is no value?
> I tried using Null.noSuchObject but this causes snmpwalk to report
> that the end of the MIB is reached.
> 
> Cheers
> 
> Matthias
> _______________________________________________
> 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