This is a discussion on FW: implementation of table row removal within the SNMP Coders forums, part of the Networking and Network Related category; > I am implementing tables using table_data.conf. I am happy with the = agent holding the data but I do ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> I am implementing tables using table_data.conf. I am happy with the = agent holding the data but I do need to be able to add and delete rows = external to the incoming SNMP requests. >=20 > The table handler function receives the netsnmp_request_info pointer = so that it can extract the row in question so that it can call add or = delete rows. This is fine for snmp requests. But I need to be able to = invoke such operations myself outside the scope of a SNMP request. i.e. = I would like to add two functions that upon receiving index values into = the table, can call the create or remove functions.=20 >=20 > The table_createEntry function provided requires the = netsnmp_table_data* and index so that a row can be added via = netsnmp_table_data_add_row(). I have no problem with this as I have a = handle on both. >=20 > The table_removeEntry function requires netsnmp_table_data* and = netsnmp_table_row*. My issue is how can I get a handle on the = netsnmp_table_row* if I am not invoking this function via the = table_handler method. >=20 > I have started considering the netsnmp_table_data_get_from_oid() and = netsnmp_table_data_get() helper functions but not sure if I am going = down the wrong road. >=20 > any thoughts would be appreciated, is there a better way? >=20 > Paul D The information contained within this e-mail and any files attached to = this e-mail is confidential and in addition may include commercially = sensitive information. The contents of this e-mail are for the intended = recipient only and therefore if you wish to disclose the information = contained within this e-mail or attached files, please contact the = sender prior to any such disclosure.=20 If you are not the intended recipient, any disclosure, copying or = distribution is prohibited. Please also contact the sender and inform = them of the error and delete the e-mail, including any attached files = from your system. www.eadsdsuk.com=20 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |