On 26 January 2012 17:05, Simon Chamlian <[email protected]> wrote:
> Basically, when I do GetTable from a browser
The first thing to remember is that there is no such thing as a
GetTable request.
A client application may appear to offer such a thing, but from the
point of view
of the agent, what it will see is a series of GetNext (or GetBulk) requests.
So deleting the rows after the table has been walked is actually quite
difficult to do.
The simplest approach is probably to cache the contents of the table
within the agent, with a relatively low timeout value - you're basically
looking for something that's long enough to allow a full walk without
re-loading the cache, while not holding on to old data for too long.
> in the C code, I would like to:
> - create rows
> - populate the rows with values
> - send response to the browser
> - delete the rows (since next time, it will be different size table)
>
> Which config file is recommended to use for the above ?
My personal preference would be to use the table_data config,
together with cache support.
i.e. generate the template code using
mib2c -Scache=1 -c mib2c.table_data.conf myTable
But as with the other templates, the code that's generated should
be regarded as a starting point for you to customise. It's not a
complete solution.
Dave
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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