Hi!

I found the example on how to add a SNMP table row in a subagent, but I wonder 
how to dynamically remove a row, assuming you have the index or some primary 
key inside a table row (but not the pointer to the row).

what I guessed so far (the documentation is _really_ bad) is this:

netsnmp_table_row       *rowp = netsnmp_table_data_get(table_set, ?);
netsnmp_table_dataset_remove_row(table_set, rowp);

That would logically remove the row from the table, but probably not delete the 
row itself.

So what to fill in at "?" (how to get it)? And if you decode to remove the row 
how do I complete the operation.

Maybe it would be easiest to complete the example "data_set.c" with removing of 
a row.

Despite of that if you already have some data structure that contains 
everything you need for the table rows, how would a corresponding code template 
look like?

Regards,
Ulrich



------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to