Re: [pysnmp-users] How To Do Dynamic Conceptual Table?
Brought to you by:
elie
From: Cannon I. <can...@gm...> - 2016-07-09 21:09:33
|
Hello! Well, basically I struggled with reinitialize the table for days... Finally the following approach did the trick: http://pysnmp.sourceforge.net/examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.html#implementing-scalar-mib-objects I mean: sub-classing the stuff and export the symbols. And use: mibBuilder.unexportSymbols("__EXAMPLE-MIB") to start anew, when the table changes. What is left is to query the db and update my own data structure (whats going to be exported in the end). Greetings! Joseph On Wed, Jul 6, 2016 at 1:50 PM, Cannon Imus <can...@gm...> wrote: > Hello! > > I followed the example: > > http://pysnmp.sourceforge.net/examples/v3arch/asyncore/agent/cmdrsp/agent-side-mib-implementations.html#implementing-conceptual-table > > The static version is working fine, now I should read the rows from a DB. > > I'd like to know what is the recommended way for implementing a dynamic > table? > > The FAQ entry: > http://pysnmp.sourceforge.net/faq/how-to-implement-agent-mib.html > says also something, but unfortunately I could not figure out, what the > author meant by: > "There are other ways for building MIB tables that represent dynamic > Managed Objects." > > Thanks a lot! > Joseph > |