> From: [email protected] [mailto:[email protected]] On
> subagents?
> 
> On 22 July 2010 15:42, Marc Butler <[email protected]> wrote:
> > I am trying to implement an intermediate interface that facilitates
> an
> > entirely dynamic (no mib) subagent
> 
> Can you explain a bit what you mean by this.

David, thanks for your reply and sorry for the long delay in replying.

The subagent I am creating creates all the MIB entries it is responsible for
dynamically. As best I can tell the master agent has a known sub-tree (not
sure how to describe the OID paths) that entries may be transient.

> The whole point of an SNMP agent (or subagent) is to provide
> management information in a structured manner, and the MIB
> essentially defines this structure.
>    So talking about a subagent that doesn't involve MIBs
> is not really meaningful.

I understand, this is a combination of my ignorance, and the fact that I
simply implementing the "glue" that mediates between an abstract API that
allows you to register OIDs + handlers, iterate over OIDs, write to OIDs and
send traps, and the net-snmp API.

Higher level software (entirely outside the visibility of my code), manages
this dynamic portion.

> If you are talking about implementing a MIB that retrieves the
> current data from some underlying subsystem, and reports that
> back directly, without any form of intermediate caching - then
> this is a reasonably common way of working.
>   Most of the existing frameworks can handle such an approach.

Yes, I believe this matches the scenario. There is no caching in my glue
code, and I believe I must create an subagent using the Agent X protocol, as
I cannot modify the master agent.

> Your mention of the 'delayed_instance' man page seems to
> imply that you are looking at an asynchronous approach,
> which is somewhat less common, but probably still feasible.

I am targeting a synchronous approach.

> But it would be useful to have a bit more detail about exactly
> what you are trying to do.

I have tried to flesh it out with these answers to your questions. I
appreciate your help and patience.

> I'd also suggest that you look at some of the existing MIB module
> code, rather than relying purely on the man pages and web tutorials.

Yes I am trying but I am yet to find anything that really matches my
conceptual model of what I need to do.

Thanks, Marc





------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to