RE: add data to table_data.conf code
"Kuczynski, Edward" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <3A63E27652978848A01D17FA4CC9CCDF6D0715F117@LLE2K7-BE01.mitll.ad.local> |
Thanks Dave, that did it! Ed -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Thursday, January 03, 2008 5:15 AM To: Kuczynski, Edward Cc: [email protected] Subject: Re: add data to table_data.conf code On 20/12/2007, Kuczynski, Edward <[email protected]> wrote: > Secondly, I'd like to go and retrieve updated data every time a get is > requested. In general, it's probably not a good idea to reload updated data for *every* request. This can be very inefficient - particularly when walking a large table. A better approach would be to use the cache helper, and reload the table data when it is regarded as "too old". If you run mib2c -c mib2c.table_data.conf -S cache=1 myTable then this should generate the template code for a cached version of the table. You'd then need to update the 'myTable_load' routine with code to fill in the contents of each row of the table. Dave ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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