On Wed, Nov 17, 2004 at 03:39:09PM -0500, Robert Story wrote: > On Wed, 17 Nov 2004 20:46:01 +0100 Magnus wrote: > MF> It seems as if netsnmp_register_instance doesn't set the > MF> FULLY_QUALIFIED_INSTANCE flag on the registration and further it looks > MF> as if the handler interface doesn't support sending flags with the > MF> object registration at all as it uses a constant 0 for the flags parameter > MF> in netsnmp_register_handler. > MF> > MF> Is this intentional, and if not, what could I do to help fix it? > > Hmmm... Well, Dave's on hiatus, so you're stuck with me and I'm not familiar > with the instance code. What problem does this behavior cause?
When used in a AgentX subagent the INSTANCE_REGISTRATION bit won't be set, this in turn means that the master agent thinks it have got a subtree registration so during GETNEXT traversal we end up with an extra call to each subagent. This means it is purely a performance problem when net-snmp is used as an AgentX subagent. (We register the variable O, then we traverse and do a GETNEXT <before O> that correctly returns O, then we do a GETNEXT O, then we calls the registration for O incorrectly, fails to get anything and goes on to find the right variable) > Can the problem be solved by setting the appropriate flag after the register > call completes? I do seriously doubt it, the AgentX registration is done from the SNMP_CALLBACK_REGISTER_OID callback that is done in netsnmp_register_mib so the only way I can see then is if you somehow could hook into the callback chain with higher priority than the agentx module and change the provided parameters but that feels like a quite ugly hack. /MF ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
