|
Re: External index / Intermodule access: msg#00332network.net-snmp.user
Hi Robert, Thanks a lot for replying, and for the assistance offered! Even though my work is pretty much done, there may be a chance for me to rewrite part of the code in the future. Right now I cannot share the source, but that should change within a month or so. Anyway, I'll try to summarize what I did to address the issue of the linked tables: - I had a bunch of tables, each one in a separate dynamically loadable module (.so). That made it impossible for each module's variables to be accessed from outside. I turned them into a single shared object file, even though they remain separate source and object (.o) files. Duh, seems stupidly trivial, but turned hell into heaven for me. - I added pointers for references in external tables, and some routines in order to allow some tables to insert and remove records in others. - In some cases, the external part of the indexes was kept stored along with the more meaningful pointers; in others it was unnecessary. There was no strict rule. Hope this is of some use. Please feel free to ask me about more gruesome details - I'll mail the code as soon as I can. Robert, sorry for CC'ing your private address; just want to make sure it doesn't take another month for this to reach you. Greetings, Daniel Fonseca --- Robert Story <rstory@xxxxxxxxxxxx> wrote: > Hi Daniel, > > array-user is one of my babies. Sorry for the delay > in responding. I dont check > the users list as often as I check coders. > > > On Fri, 19 Dec 2003 22:54:13 -0800 (PST) Daniel > wrote: > DF> I've used the sorted array helper for one of the > tables successfully > DF> (thanks for handling rowstatus, works great!) > > Glad to hear it! It seems the array-user conf file > doesn't get used nearly as > much as the iterator one, so I'm always glad to hear > from a satisfied customer. > > DF> But still, no code or section of the tutorial, > or even the examples that > DF> come with net-snmp, address the issue of writing > code for interconnected > DF> tables, via external indexes. > > Yep. That's because I haven't had time to get around > to > generalizing this more complex case and updating > array-user. I've done a bunch > of thinking about it, but hadn't put anything down > on paper yet. > > However, if you want examples of augmented and > interconnected tables based on > array-user, check out the net-policy project. > <http://net-policy.sourceforge.com>. In particular, > grab np-plutoplus and check > out the mib directory. Alot of it is tables that > point to other tables, but I > do remember that the ipspCredentialSegmentTable uses > the same data source as > the ipspCredentialTable. I can't promise that it'll > be pretty, but it can be > done. > > > I'd write more, but you were talking about a tight > schedule, and it's been a > month. If you've found a solution, you could share > it. If you haven't, let me > know and maybe we can hash something out. > > -- > Robert Story; NET-SNMP Junkie __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Net-snmp-users mailing list Net-snmp-users@xxxxxxxxxxxxxxxxxxxxx Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | snmptrapd info for Fedora users: 00332, jgking |
|---|---|
| Previous by Thread: | Re: External index / Intermodule accessi: 00332, Robert Story |
| Next by Thread: | about SNMPv1 and v2 error messages: 00332, Joao Miguel Ferreira |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |