Hi Thanks for the solution
Actually i am using mib2c.table_data.conf to generate a table , so
now i used the suggested command mib2c -c mib2c.table_data.conf -S cache=1
mytable , but i am unable to understand properly... , this approach is
trying to fill the values form a file but my values are dynamic , will come
throught a funtion call's ( if possible please give me a fully finished
example code for any table ).
On Wed, Mar 12, 2008 at 6:39 AM, Dave Shield <[EMAIL PROTECTED]>
wrote:
> On 11/03/2008, kumar undurthi <[EMAIL PROTECTED]> wrote:
> > I have a problem in creating a table and Fill the table. i.e
> > Normally table can create in initialization() part and can be fill with
> the
> > static data.
> > But in My case.... I want to Create and Fill the table with the dynamic
> > data(values) when ever a request comes to the Agent.
>
> Probably the best approach would be to use the cache helper.
>
> You haven't said how you are generating the code,
> or which table helper you are using. But if you run
> something like
> mib2c -c mib2c.table_data.conf -S cache=1 myTable
>
> this should generate a suitable framework for your MIB module,
> including the code to load the table data when a request
> comes in. This cached data will then be used for the next
> few requests, until it's judged "too old". Whereupon the
> next request will trigger a fresh reload.
>
> The same approach can be used with the iterator helper
> (same command, but specifying 'mib2c.iterator.conf'),
> and probably also with the MfD framework.
> (though I don't know much about that one).
>
> 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