On 19/01/2008, vijay <[EMAIL PROTECTED]> wrote:
> In some scenarios I need to get values from sub-agents to arrive at some
> decisions.
> Is there any way to directly access MIB values of the sub-agents if I have
> the OID and context information?

The simplest approach is to send a suitable request to the master agent,
and let it query the appropriate sub-agent(s) for you.   If you are working
within the master agent itself, then you could try using the 'netsnmp_query'
mechanism.   I'm not sure whether that would work from a subagent, but
you could use a similar approach.

The alternative, when the target module and requesting code are in the
same agent process, would be to tweak the implementation module
such that both sets of code use a common routine to actually retrieve
the underlying values.    But that probably wouldn't help in your situation.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to