Re: adding cache handling to table_data.conf code

Kathy McLeod <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OFD0C73BF5.BAC4B4FB-ON862576EE.0074B566-862576EE.0076108A@us.ibm.com>
This seems to either generate the iterate_access code stubs or the MFD's
iterate code stubs, and the documentation for MFD and your reply to a
someone else's note indicate that these are poor performers.  Are there any
other options?

I am going to be implementing a table that has several HW statistics per
port number (i.e., this is the index) so it will always potentially be out
of date.  Using the iterate_access code, what is the most efficient way to
do this?  Updating the entire table for every Get seems like overkill.
Will it work if I just update the row I am working with?  Is it possible to
implement a table handler for volatile data without having a copy of the
data?  By that I mean, can I figure out the index and column from the
incoming Get request and just retrieve the HW stat for that and return it?
I haven't seen anything like that in the tutorials.

Thanks.


Kathy McLeod
Dept S82  CCB - SNMP
IBM Rochester, MN
(507) 253-4803


                                                                           
             Dave Shield                                                   
             <D.T.Shield@liver                                             
             pool.ac.uk>                                                To 
             Sent by:                  Kathy McLeod/Rochester/IBM@IBMUS    
             dave.shield@googl                                          cc 
             email.com                 [email protected] 
                                       t                                   
                                                                   Subject 
             03/22/2010 10:39          Re: adding cache handling to        
             AM                        table_data.conf code                
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




On 22 March 2010 15:33, Kathy McLeod <[email protected]> wrote:
> Do you have sample code for adding a cache handler and container to code
> generated by table_data.conf, or could you give me some pointers?

Run
      mib2c -S cache=1   mib2c.table_data.conf   {tableName}

This will generate a template that includes cache support.

Dave



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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.