[SNMP4J] Fix in v1.1.2
Frank Fock
fock at agentpp.com
Fri May 18 00:45:44 CEST 2007
Hi nidhin,
Adding/replacing the following code of MOScalar.java provides
the necessary fix:
...
private volatile OID lowerBound;
...
public OID getLowerBound() {
if (lowerBound == null) {
lowerBound = new OID(oid.getValue(), 0, oid.size()-1);
}
return lowerBound;
}
public OID getUpperBound() {
if (upperBound == null) {
upperBound = new OID(getLowerBound().nextPeer());
}
return upperBound;
}
public boolean isLowerIncluded() {
return false;
}
Best regards,
Frank
nidhin wrote:
> Hi,
>
> The following fix in v1.1.2 does not seem to work.
>
> GET or SET requests on OIDs within the
> subtree of a MOScalar now returns noSuchInstance
> and noCreation respectively (instead noSuchObject
> and noSuchName).
>
> I am getting the following error from the agent.
>
> ###########################################################################
> # Test Results: (1)The response value type in the varbind
> # (NoSuchObject) contained error other than
> # NoSuchInstance.
> # Test Rating: POOR
> # Message Exchange:
> #
> # (Thu May 17 14:06:26 2007):
> # Get Request: Version = SNMPv2c, Community = public
> # Request Id = 989, Error Status = No Error , Error Index = 0
> # Oid1 = fmMaxErrorEvents.4294967295 , Type = NULL, Value = NULL
> #
> # (Thu May 17 14:06:26 2007):
> # Response: Version = SNMPv2c, Community = public
> # Request Id = 989, Error Status = No Error , Error Index = 0
> # Oid1 = fmMaxErrorEvents.4294967295 , Type = NoSuchObject, Value = NULL
> ############################################################################
>
> Regards
> Nidhin
>
>
> ---------------------------------
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
> _______________________________________________
> 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