Please see my responses inline.
> Date: Mon, 17 May 2010 19:54:29 +0100
> Subject: Re: AgentX bug?
> From: d.t.shi...@liverpool.ac.uk
> To: b...@live.com
> CC: net-snmp-users@lists.sourceforge.net
>
> On 17 May 2010 16:57, X Z <b...@live.com> 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users