Re: tablesnmpwalk on table not working via subagent - need help please
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2008/4/23 Mike Ayers <[email protected]>: > > I have found no information about table_dataset2 helper. Does > > this exist? No. > I suspect that it is this: > > http://www.net-snmp.org/dev/agent/group__tdata.html Not quite. The 'table_tdata' helper is a reworked version of the 'table_data' helper. Both of these represent the table as a collection of individual row data structures. The helper takes care of selecting the appropriate row from within this collection. The user-provided handler should then select the requested column value from within this data structure. The 'table_dataset' helper takes this a stage further. As well as taking care of the table as a collection of rows, it also handles each row as a collection of column values. The standard helper can therefore process an SNMP request without needing *any* user-provided handler code. The original intention of the table_dataset2' helper was to apply the same 'table_data' -> 'table_tdata' reworking to the dataset framework. But this never actually happened. > > Can anyone clarify for me which code in net-snmp works for > > the purpose of implementing a table. All of the table helpers have been used for implementing assorted tables with the Net-SNMP agent, so they should all work successfully. I still hope to look properly at the problems you have been having. > The table_dataset/group_tdata functions are for "datamatted" [sic] tables > those for which you store the data and forget. That's true for 'table_dataset', but not for 'table_tdata'. > I don't see any functions to build the rows, either. The code for building a row in a 'tdata'-based table is specific to the individual MIB table, so isn't part of the tdata helper itself. Instead it will be generated as part of the mib2c.tdata.conf template. > I suggest taking a look here: > > http://www.net-snmp.org/dev/agent/group__table__generic.html > > ...for what appears to be a more generic and complete set of functions. That's not actually a user-level table helper. It's more intended as a design framework of the API that a particular table helper should look at providing. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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