context and multiple mib-instances

Frank Fock Frank.Fock____t-online.de
Tue Feb 15 20:12:46 CET 2000


jan-ivar.nymo____4tel.no wrote:

> how can I use the snmpv3 context(name) to differ between multiple
> mib-instances in an agent?

Currently, you have to instantiate a Mib instance for each context and
add instances of the appropriate MibEntries to it. Then you have to
dispatch the requests in the main loop of your agent to the different
MIB instances.

>
> It would be perfect if I could use the context as key in a routingtable that
> describes what route
> to take to find a specific instance of a mib-variable. But, what I can see
> from the examples in
> agent++, allowed context's have to be predefined when initializing the
> security constructs.
>

For the next release (3.4) I would like to change the Mib class as follows:

* add a new method Mib::add(const OctetStr& context, MibEntryPtr)
* change the (protected) lookup methods like "find_..." to recognize contexts.

Any suggestions?

Best regards,
Frank




More information about the AGENTPP mailing list