On 5 July 2012 20:15, Bo Yuan <[email protected]> wrote: > I try to build a subagent that registers a MIB handler for these built-in > objects of the SNMP Daemon.
What exactly do you mean by the "built-in objects"? Which objects are you referring to? > The SNMP Daemon will not pass these requests to the subagent since it has > support for those objects built in. > > To overcome this limitation, the SNMP Daemon needs to be built with minimal > MIBs included. That's not strictly true. What is needed is for the master agent to be built (or run) without support for the particular MIB groups that you wish to delegate to your subagent. You don't have to omit *everything* - just the bits that you are implementing yourself. > Instead of building the SNMP Daemon with minimal MIBs included. > > Is it possible to > 1) assign a higher priority to the subagent's mib handler? > In that case, the SNMP Daemon might pass the requests to the subagent Yes - set the 'priority' field of the registration structure, before you register it. But there's a caveat. The OID that you register in your subagent must *exactly* match the OID that it's overriding. If you register '1.3.6.1' (at a high priority) and the master agent registers '1.3.6.1.2' (at a lower priority), then the more precise registration will be used - regardless of the two priorities. > 2) specify individual OIDs (and not entire MIBs) for which snmpd will pass > the request to the subagent ? If you register individual OIDs, (rather than entire MIBs) in your subagent, then that's what will be reigistered with the master agent. Hence (given the above), those individual OIDs will be passed to the subagent for processing. Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
