RE: AgentX bug?

X Z <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Please see my responses inline.

> Date: Mon, 17 May 2010 19:54:29 +0100
> Subject: Re: AgentX bug?
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> On 17 May 2010 16:57, X Z <[email protected]> wrote:
> > I added two scalars to NET-SNMP-EXAMPLES MIB: MyVal1 and MyVal2 which are
> > ASN_COUNTER64 type. And I wrote an AgentX subagent to answer snmpget
> > requests for the two Counter64 scalars.
> > A snmpget on a single OID can return the correct value.
> > For example:
> > snmpget -v2c -c public xxx NET-SNMP-EXAMPLES-MIB::MyVal1.0
> > OID1 = 327990
> > snmpget -v2c -c public xxx NET-SNMP-EXAMPLES-MIB::MyVal2.0
> > OID2 = 78890
> >
> > A snmpget on two OIDs returned errors.
> > snmpget -v2c -c public
> > xxx NET-SNMP-EXAMPLES-MIB::MyVal1.0 NET-SNMP-EXAMPLES-MIB::MyVal2.0  gives
> > the following error:
> > Error in packet
> > Reason: (genError) A general failure occured
> > Failed object: NET-SNMP-EXAMPLES-MIB::MyVal1.0
> > If I changed both scalars to Integer32 or Unsigned32, everything worked just
> > fine.
> > Is it a bug in AgentX handling snmpget on multiple Counter64 object? Where
> > should I report it?
> 
> 
> Which version of the agent are you working with?


5.3.1.

> What architecture?
> 

x86_64 GNU/Linux

> I've got a vague recollection of something similar being reported some
> time back,
> and being fixed in the most recent versions of the code.  So if you're not using
> v5.5, then it's probably worth trying with this.
> 

Do you recall what would be the patch for this fix? Is it the following:
2008-08-17 21:08  dts12
   * agent/mibgroup/agentx/protocol.c:
   CHANGES: snmpd: PATCH: 2022936: Fix AgentX Counter64 decoding on   64-bit architectures
Thanks!Xuan
> Dave
 		 	   		  
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.