[ Firstly, can you please *NOT* send the same
         request multiple times.  The support for this
         package is provided in our spare time, and
         paid employment must take priority.
           Asking the same question three times in less
         than three hours is somewhat impatient, considering
         you are expecting to be helped for free!]


> I had a table defined in my MIB and I use mib2c to
> generate table_dataset type of code so that my table
> is stored inside the agent in a linked list format. I
> am wondering if there is a way to delete a row in the
> table by the agent and how.

What's the structure of the MIB table, and what SNMP request
would you expect to use for deleting a row?   Does this
table use the standard "RowStatus" object, or some private
mechanism?

If you're using RowStatus, then the 'table_dataset' helper
will handle deleting rows automatically.   Just declare which
column is the RowStatus column when you register the table:

        netsnmp_table_data_set *table_set =
                netsnmp_create_table_data_set("myTable");
+       table_set->rowstatus_column = MY_STATUS_COLUMN;
        <etc, etc>


It ought to be possible to handle row deletion manually,
by calling
        netsnmp_dataset_remove_and_delete_row()
                                        at the appropriate point,
but I've got a note that the last time I looked at this,
it didn't work properly.   I hope to get back to this again
over the next month (and it may have been fixed in the meantime),
but the simplest approach is definitely to use the internal
RowStatus handling, if this is appropriate for your MIB table.


Dave



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to