Some days ago I was asking for information on the users list, but got no 
responses. So here it goes again (modified):
> Hi!
> 
> I found the example on how to add a SNMP table row in a subagent 
> (snmp_set.c), 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 delete/free 
> the 
> row separately, 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?

The agent I'm going to write will have to add and remove table rows 
dynamically, probably as reaction on SNMP set requests.

> 
> Regards,
> Ulrich
> 
> 



------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to