FW: implementation of table row removal

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


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2005
Paul Davies
 
Posts: n/a
Default FW: implementation of table row removal


> 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0