On 31/08/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > I've added in my registration of my table the creation of the rows:
> int initGenServerTable > { [omitted] > // Add a Row > netsnmp_table_row *row = netsnmp_create_table_data_row(); [snip] > netsnmp_table_dataset_add_row(genServerTable, row); > } > > When I execute my sub agent, I now have the following error: > illegal data attempted to be added to table (no index)genServerTable > although I set the index (variable ind) in the row of the table... But have you *declared* the structure of the table, and how it is indexed? This would normally occur in the block of code that you omitted, before starting to populate the table (netsnmp_create_table_data_row() through netsnmp_table_dataset_add_row()). See 'mibgroup.examples/data_set.c' for the necessary code. > I hoped that management of the index of a table was managed by the net-snmp > API. Yes - it is. > Must I manage it myself? No - you don't have to manage this yourself. But you do need to tell the agent what form this indexing takes. It's not clear from the code you've provided whether or not you are actually doing this. See the example referred to above. Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users