Re: AgentX bug?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[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?
What architecture?

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.

Dave

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

_______________________________________________
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.