add data to table_data.conf code
"Kuczynski, Edward" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <3A63E27652978848A01D17FA4CC9CCDF6D0715F052@LLE2K7-BE01.mitll.ad.local> |
Hi, New to netsnmp, but have used other snmp toolkits. I have a simple 1 index read-only table which will get its data from reading a file(for now). I used mib2c table_data.conf Xtable to create the code. I see a comment to "initialize the contents of the table here", but am not sure how to do that. Is there any example. I browsed the archive, but got swamped from the search. Secondly, I'd like to go and retrieve updated data every time a get is requested. How is this done? It seems to me that initially I have to somehow call the createEntry method To allocate the memory and this deals with netsnmp_tdata which has containers. But I'm confused from there. Is each container a row, or a table? If there is code around that shows a sample read-only or read-write table from table_data.conf I'd appreciate the code snippet. Thanks for your time. Ed ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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