[SNMP4J] How the class TestAndIncr works?

Mark Gorokhov mark.gorokhov at comtechmobile.com
Thu Feb 21 17:02:00 CET 2008


Attempt to set from the MIB browser the value '0' for already existing
value '0' actually sets the new value '1'. And so on: set the value 'n'
for existing value 'n' sets the value to 'n+1'.

Is this correct behavior? Is this documented somewhere?

Mark G.

-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
Behalf Of Mark Gorokhov
Sent: Thursday, February 21, 2008 10:33 AM
To: snmp4j at agentpp.org
Subject: [SNMP4J] How the class TestAndIncr works?

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.
_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j



More information about the SNMP4J mailing list