Re: xxx_Table_handler() not being called if table is empty.

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGb2hFL4mcxGGobNYTX-ovoSSLnS7HFD1BS2yjGTfdoHiw@mail.gmail.com>
On 28 March 2012 16:26, Francois Bouchard <[email protected]> wrote:
>> Which framework are you using to build the MIB code?
> the script used is mib2c.table_data.conf,

Remember that the basic model for the table_data framework is that the
agent holds an internal representation of the table.   This may be a local
cached copy of some external data (using the cache helper).
  Alternatively it may be that the local representation is the main/only
form of the table.  (i.e. the table is *only* held within the agent)

But in either case, the table_data model requires the list of valid rows
to be known *before* the table-specific handler is called.  That's a
fundamental design aspect of this particular helper.

You can actually load the column data from within the handler, but
at the very least - the helper needs to know the list of valid row indexes
beforehand.

Dave

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
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.