On Fri, 09 Sep 2005 09:44:50 -0700 Tom wrote:
TC> I believe I'm confused on the use of MFD_SKIP. We have a table and
TC> used mib2c -c mib2c.mfd.conf to build our skeleton code. I haven't
TC> implemented one of our objects yet, so I just wanted return MFD_SKIP, to
TC> get snmpwalk to, "skip" over it. Here's a code snippet:
The code looks right...
TC> When I run snmwalk, I end up with the following (amccRaidOutstandingIOs
TC> is the _previous_ row btw, and it works):
TC>
TC> AMCC-RAID-MIB::amccRaidOutstandingIOs.2 = Gauge32: 0
TC> Error in packet.
TC> Reason: (genError) A general failure occured
TC> Failed object: AMCC-RAID-MIB::amccRaidOutstandingIOs.2
TC> [...]
TC> ... and snmpd -Lo -f shows:
TC>
TC> Connection from UDP: [127.0.0.1]:32770
TC> send response: Error building ASN.1 representation (wrong type in
TC> snmp_realloc_rbuild_var_op: 199)
TC> Where did I got wrong?
The code is right, so you've hit a bug somewhere.
What release are you running? If you aren't using 5.2.1.2, try upgrading/
Is your module compiled into the agent, or is it a sub-agent?
What OS?
32 bit or 64 bit?
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders