Re: how to Initialise the contents of the table?
"蔷<Qiang Hu>" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
i created an entry as you told me.but snmpd got a segment fault when i snmpget or snmpset althought i 'm sure my added codes didn't cause this fault separately ,you can understand me ? during modifying ,i got two questions this time as following: 1,whether the routine tbModuleTable_createEntry need to modify?in my opinion,if not, it coundn't create an entry in function,because what i did as you told me is just to fill the contents of the table,but if there is no row of the table,i think filling makes no sense.is it right? i saw the \agent\mibgroup\disman\event\mtEventTable.c~``it uses the APIs netsnmp_tdata_create_row and netsnmp_table_row_add_index,whether i should add these APIs in tbModuleTable_createEntry of my mib code?if not , i fill the contents into where? i can't understand it. 2,if i initial the contents of the table in the function "initialize_table_tbModuleTable", whether i should definit a static variable "entry" in "initialize_table_tbModuleTable" as the return of the routine tbModuleTable_createEntry.if not ,perhaps it can get the entry by the routine netsnmp_extract_iterator_context? i'm so sorry,because i have made so much trouble on this thread.butactually,i still couldn't well understand how the whole agent works,because it 's impossible for me to read all the codes of net-snmp.so why there is no document about how to modify the codes generated by mib2c.iterator.conf ?i saw the document called "agent" for mib2c by old api configuration. thank you sincerely! On 8/11/06, Dave Shield <[email protected]> wrote: > > On 11/08/06, qiang<Qiang Hu> <[email protected]> wrote: > > i saw the agent/nsCache.c ,but i can't see how it initials the contents > of > > the table,it seems that it didn't do anything to initial the contents of > the > > table > > That's correct - this particular table is responding to entries > created elsewhere in the agent. > I wouldn't suggest you try and follow this in detail - it's not > typical of most tables. > > > there is no information > > about how to create an entry by that routine called ***_CreateEntry, i > still > > felt it difficult to know how to initial by that routine.: > > Please see my first response on this thread, which described how to do > this. > > Dave > -- qiang ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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