Hallo,
I have built a simple table like explained in the data_set example. My
problem is, I do not understand how to reassign the MIB values. For example
after the creation of the table (netsnmp_create_table_data_set(),
netsnmp_table_dataset_add_index() ,
netsnmp_table_set_multi_add_default_row() ...). To make it simple let us
assume I have a table with only a index and one column with text, to make it
even more simple we assume only one row (I know, that I than dont need a
table, but it is an example).
...
g_index = 1;
strcpy(sz,"hello");
row = netsnmp_create_table_data_row();
netsnmp_table_row_add_index(row, ASN_INTEGER, &g_index,sizeof(g_index));
netsnmp_set_row_column(row, 2, ASN_OCTET_STR, sz,strlen(sz));
netsnmp_table_dataset_add_row(table_set, row);
...
The snmpwalk over the table works fine and says "hello" to me.
later sz changes to strcpy(sz,"bye bye");
Unfortunately the snmpwalk still says "hello" to me. I think the simpliest
way would be to delete the whole table and do the recreation things down
before.
But how can I destroy/delete the table?
Thank you for your advice.
Torben
_________________________________________________________________
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig
im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/
Jetzt gratis downloaden!
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders