[SNMP4J] How the class TestAndIncr works?

Mark Gorokhov mark.gorokhov at comtechmobile.com
Thu Feb 21 16:32:58 CET 2008


It's not clear how the class org.snmp4j.agent.mo.snmp. TestAndIncr
works.

This class is used for example for the scalar snmpTargetSpinLock in
SnmpTargetMib. The default value of this scalar is '0'. Attempt to set
any other value from MIB browser, e.g. '1', always returns
SnmpConstants.SNMP_ERROR_INCONSISTENT_VALUE in the prepare() method.

Am I missing something or this is a bug?

Thanks,
Mark G.



More information about the SNMP4J mailing list