Re: Sharing a cache between different OIDs

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 2 March 2011 11:28, Alec Edgington <[email protected]> wrote:
> The MFD framework makes it easy to implement a table with its own
> cache. But I cannot see an obvious way to get several different tables
> (and scalars) to share a single cache.

Have a look at the code for the ifXTable  (if-mib/ifXTable/*)
This shares the same cache as the main ifTable.

In particular, the routine _ifXTable_container_init()
makes use of netsnmp_cache_find_by_oid() to retrieve
the shared cache structure.

Dave

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
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.