Re: How to renew (update) data stored on a OID for a get request?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 13/02/2008, Simon Huebner <[email protected]> wrote:
> is there no way to solve my problem with 5.2?

The cache helper is part of the 5.2.x distribution,
so you could probably use the cache-style framework
from the "mib2c.table_data.conf" template, with your
earlier "mib2c.create-data.conf" code.

Have a look at the init routine of the later code - that's
the sort of thing you'll need to add to the original MIB
implementation.   Then move the code for populating
the table into the "load" routine, and write a simple
"free" routine to drop this information.


  Or you could try with the "mib2c.table_data.conf"
template from the 5.2.x installation (which uses a
different though related table handler).
   Again, you'd need to insert the cache handling
code yourself - try comparing the results of

   mib2c -c mib2c.table_data.conf yourTable
and
   mib2c -S cache=1 -c mib2c.table_data.conf yourTable

(using the later mib2c config template).
That should show you the code you'll need to
add to the earlier template.



Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.