> 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.
> 
> 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. 
> 
> 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.
> 
> 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.
> 
> 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.
> 
> any thoughts would be appreciated, is there a better way?
> 
> 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. 

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 




-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to