On Tue, 5 Jul 2005 12:51:12 +0200 Jon wrote:
JNL> I'm trying to extend the agent with my own MIB using mib2c and the MIB
JNL> For Dummies framework.
JNL>
JNL> The agent works fine and I can do a snmpwalk on the table, but when
JNL> the container-cache reloads snmpwalk gives an empty result (no error).
Have you run with debugging? (-Dverbose:fft,fft)? Any debug messages from the
cache load routine?
JNL> int
JNL> fftHoldTable_cache_load(netsnmp_container * container)
JNL> {
JNL> ...
JNL> /*
JNL> * Fetch fft_data from external data source (fpga) using ip/udp
JNL> */
JNL> if(get_fft_hold(fft_data) == -1)
JNL> return MFD_RESOURCE_UNAVAILABLE;
I'd add a snmp_log(LOG_ERR,"..."), or at least a debug message here..
JNL> for(count=0;count<FFT_SIZE;count++) {
JNL>
JNL> binNumber = count;
JNL> ...
JNL> if (MFD_SUCCESS != fftHoldTable_indexes_set(rowreq_ctx,
binNumber)) {
You know that index numbers aren't supposed to change, right? If fft_data isn't
ALWAYS FFT_SIZE entries, this code isn't right.
JNL> DEBUGMSGT(("verbose:fftHoldTable:fftHoldTable_cache_load",
JNL> "inserted %d records\n", count));
How many records does the debug message indicate were inserted?
--
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: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders