I have a couple of questions about extending the agent's abilities. We are talking about an agent that has to speak SNMPv3.
The first is about overriding (or, at least, associating some action) with a set of one of the standard MIBs. For example, I want setting the sysName value to actually change the host name of the system. One approach was set my own handler (using netsnmp_register_scalar) for 1.3.6.1.2.1.1.5. This, however, resulted in a soft assert failure during run (two handlers for the same oid), and my handler was not called. I also tried to prevent the default handler for this OID from being compiled into the agent, but I'm not sure how to do that. Nothing I pass to configure under the "--with-out-mib-modules" seems to do it (I tried passing "mibII ucd_snmp agent_mibs agentx notifications target utilities disman/event disman/schedule host"). If I also pass snmpv3mibs I MAY have managed to do it. I don't know, as I get an agent that will not allow me to create users so I can login. The only way out I see is to either ask the agent to let my plugin know whenever that attribute is changed. I would rather do it without making any changes to the net-snmp code, but if that is my last resort then that's what I'll do. I'm having trouble finding the correct place in the code for doing that, and any help would be appreciated there as well. The other thing I couldn't find how to do it is to change the list of trap sinks without shutting down and restarting the agent. Is there some command a plugin and/or a program running the agent (from an external select handler) can execute to add and remove SNMPv3 trap sinks? Thanks for your help, Shachar ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
