Re: Agent extension to handle all SET requests?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/6/15 Nepveu, Charles <[email protected]>: > We're looking in integrating net-snmp to our linux-based embedded device, > and I was looking for a way to let a module(or subagent) handle all the SET > requests for all OIDs (even the ones in the standard MIBs). Hmmm... that's not going to be easy. It's somewhat at odds with the architectural model of the Net-SNMP agent. The basic idea is that a given implementation module is responsible for *all* processing of a given portion of the OID tree. The idea of passing SET requests off to one module, and GET* requests off to another isn't really supported. Let alone duplicating the SET request so it's handled by *both* bits of code. > This behavior is required because several other processes and managed > databases (which snmpd doesn't know about) would have to be notified or > updated, as well. The simplest approach might be to craft a suitable helper handler, to look for the appropriate pass of SET requests, and update these other information sources. That helper could then be inserted into the handler chain for all registrations. Have a look at the "bulk_to_next" helper for a vaguely similar idea. 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-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