On 31/07/06, Martin Pasdzierny <[EMAIL PROTECTED]> wrote:
> we need to propagate table based data stored *external* to netsnmp.

> What we need is a *working* example outlining (=using) one of the table
> interfaces allowing *external* data storage and allowing real *efficient* 
> access
> (like a set).

There's probably nothing that implements an external table using the
generic table handler.  Most of our MIBs use one or other of the table
helpers to take care of most of the donkey work.

A couple of questions:
  How dynamic is the structure of your table?  Is the number (and
indexes) of the table rows fairly stable, or are rows being added and
removed all the time?
  How "real-time" does the agent need to be (particularly in relation
to the rows of the table)?

If the table is reasonably stable (or you're happy to accept a certain
delay before recognising new rows), then one approach would be to use
the 'table_tdata' (or similar) helper to cache details of the rows in
the table.  This could be a complete cache (including all the data for
each row), or a "structure cache" where you retrieve the information
for a given row at the time of the request.


If you need a fully-responsive agent (i.e. can't allow even a few
seconds caching), then what is the interface to the underlying data
like?   I'm assuming that you have a way of retrieving the data for
the row with a given index.   But quite honestly, that's the easy bit!
  What's often more complex (depending on the indexing of the table)
is handling GETNEXT requests (i.e. snmpwalk commands).   Is there an
API to retrieve the "next row" after a given index?

What is the indexing of this table anyway?  A simple integer, or
something more complex?
Can there be gaps in the table, or do the index values run consecutively?

I'm sorry to offer more questions than answers, but it's not really
possible to offer a "one-size-fits-all" response to your needs!

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to