[SNMP4J] v2c agent

nidhin nidhingj at yahoo.com
Tue May 22 19:30:59 CEST 2007


Hi Frank,
   
  Yes, the tested OID is indeed outside of any registered ManagedObject.
   
  Regards
  Nidhin

Frank Fock <fock at agentpp.com> wrote:
  Hi Nidhin,

The question is whether the tested OID is indeed outside
of any registered ManagedObject of the agent or not?

Best regards,
Frank

nidhin wrote:
> Hi Frank,
> 
> Following is the description of the test case.
> 
> Description:
> # This test checks the agents ability to process SNMP Get/Getnext 
> requests
> # for non existent MIB variables. A get, getnext request is sent to
> # the agent for a MIB variable that is not part of the group or table.
> # A SNMPv1 agent is expected to return a lexicographically larger 
> variable
> # for GetNext or NO_SUCH_NAME for Get requests. A SNMPv2C agent is 
> expected
> # to return a lexicographically larger variable for GetNext or 
> noSuchObject
> # value for Get requests. 
> # 
> # Example: The system group in MIBII has 7 attributes. A request is
> # sent with system.8 which is one larger than the last attribute
> # in that group. In the case of a tableEntry with 5 columns, a
> # request will be sent for tableEntry.6
> # 
> # Note: An SNMPv1 agent should return a NO_SUCH_NAME error (and a 
> SNMPv2C agent
> # a endOfmib value) for a GetNext operation on the last variable 
> supported.
> # While this may be flagged as an error, this is a valid 
> response, if the
> # variable is indeed the last variable.
> 
> ---------------------------------------------------------------
> 
> So my agent returns me No such instance error instead of a noSuchObject 
> error if get request is sent to the agent for a MIB variable that is not 
> part of the group or table.
> 
> Please reply if I have missed some point.
> 
> Regards
> Nidhin
> 
> 
> */Frank Fock /* wrote:
> 
> Hi Nidhin,
> 
> Without knowing the agent's instrumentation it is hard to say
> whether this is an error or not. I cannot reproduce such
> a problem with my agent.
> 
> Best regards,
> Frank
> 
> nidhin wrote:
> > Hi,
> >
> > For the following test v2c agent fails to respond back with
> proper error message.
> >
> > I have used v1.1.2 SNMP4j agent jars
> >
> > Test case:
> >
> > process SNMP Get/Getnext requests for non existent MIB variables.
> >
> > Result:
> >
> >
> ############################################################################
> > # Test Results: A response value contained an error type
> > # (NoSuchInstance) other than NoSuchObject.
> > # Test Rating: POOR
> > # Message Exchange:
> > #
> > # (Mon May 21 14:09:20 2007):
> > # Get Request: Version = SNMPv2c, Community = public
> > # Request Id = 61, Error Status = No Error , Error Index = 0
> > # Oid1 = 1.3.6.1.4.1.1456.20.2.38.6.1.6 , Type = NULL, Value = NULL
> > #
> > # (Mon May 21 14:09:20 2007):
> > # Response: Version = SNMPv2c, Community = public
> > # Request Id = 61, Error Status = No Error , Error Index = 0
> > # Oid1 = 1.3.6.1.4.1.1456.20.2.38.6.1.6 , Type = NoSuchInstance,
> Value = NULL
> >
> ############################################################################
> >
> > Regards
> > Nidhin
> >
> >
> > ---------------------------------
> > You snooze, you lose. Get messages ASAP with AutoCheck
> > in the all-new Yahoo! Mail Beta.
> > _______________________________________________
> > 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
> 
> 
> ------------------------------------------------------------------------
> Be a better Globetrotter. Get better travel answers 
> from 
> someone who knows.
> Yahoo! Answers - Check it out.

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



       
---------------------------------
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 


More information about the SNMP4J mailing list