On Thu, 8 Jul 2004 08:48:37 +0100 [EMAIL PROTECTED] wrote:
HKC> > If you don't mind caching, then the stash cache helper would help.
HKC> > There a lots of different ways of optimizing, using various 
HKC> > different handlers
HKC> > and helpers. It just depends on your data, and how much extra 
HKC> > work you want to do.
HKC> 
HKC> The data I am accessing is in a shared memory area. It is already ordered
HKC> but might have gaps in it (ie. some rows might be missing). I will have a
HKC> look at the stash cache helper stuff. Is there an existing MIB module I
HKC> could have a look at on how it's done?

Not that I could find. But I think it should be as simple as

        netsnmp_inject_handler(hander,netsnmp_get_new_stash_cache());


Of course, if you have the data sorted (in the table index/lexicographical
order) and want the optimal solution, then using one of the netsnmp container
based handlers with a custom container (or a standard one, if you have control
of the data-collecting side of the shared memory) is the way to go.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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

Reply via email to