2009/6/12 Zaryab M. Munir <[email protected]>:

> I have 6 subagents, each one supports the IP-MIB.  The master agent also
> supports the IP-MIB.
> My question:
> What API should I use for;  and how, to register the scalar objects
> of IP-MIB like "ipDefaultTTL" etc. such that I can query the values of these
> scalar objects from all 6 subagents through the master agent.

You can't - the question simply doesn't make sense.

With a scalar object, there is only one value, so it must come
from *one* (sub-)agent.   The other six will simply be unused.


> Ofcourse, the snmp manager will only query the master agent, hence I want
> all subagents to be queried by master agent and return the values.

How?
The snmp manager has asked for one value, so will be expecting one answer.
How do you intend to return seven values instead of one?
And what makes you think the manager would be able to cope with
receiving more answers than it was expecting?


>  We are using default context across all agents.

The only way to support multiple parallel versions of a scalar
object would be to use different contexts.   That way, the manager
can choose which version they are interested in.


I think you need to re-examine what you are trying to do.
It simply doesn't make sense as you've described it here.

Dave

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to