On Sun, 18 Jul 2010 17:36:26 +0100 Angela wrote: AP> I have now managed to implement my table using MfD. It works fine and AP> I'm really pleased with it. In the beginning I was a bit daunted by AP> the MfD, but turns out it is really simple - hence the name I guess AP> :-)
Yay! :-) AP> I also did an alternative implementation where I read data from a file AP> using the iterator approach - but it seems the iterator has a bit of AP> an overhead. Yeah, this is why I recommend people stay away from it unless they just really can't afford to keep all their indexes in memory for a few seconds.. Say a really low-memory system where SNMP performans isn't that important.. AP> One last question: is there any examples of how scalar data can be AP> cached? I can see the MfD takes care of caching for the tables, but AP> when I run mib2c with no arguments it doesn't give me the choice of AP> MfD for the scalar object. There's no reason a cache helper couldn't be used with a scalar. You can check out the details of registering a cache in the xxx_interface.c file in your MfD implementation, or grep for lots of examples in the source. AP> Lastly, if anybody thinks that it'd be beneficial to share my AP> adventures with implementing tables, I can document my experience and AP> what I did in a step-by-step tutorial and post them here. I'm quite AP> good at documenting stuff - more than coding it seems :-) Angela, that would be fantastic! I haven't had time to maintain my original tutorial using the ifTable, so something up to date and written from the true Net-SNMP novices would be VERY helpful. Robert ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders