On Thu, 9 Sep 2004 15:39:09 -0400 bill wrote: BS> I've got a Solaris box set up with multiple interfaces. I've written a BS> subagent that responds to a particular part of the OID tree, but I BS> need the subagent it to provide different information based upon the BS> listener address(which interface the request comes in on). (Or, have BS> snmpd "call" a different subagent based on the listener address, not BS> the OID)
That sounds like a job for contexts. I believe there was some work done recently to enable passing contexts to sub-agents. If you read the snmpd.conf man page, you can set up access control so that a particular community string maps to a particular context. Can you set up the devices that are talking to snmpd to use different community strings for different ip addresses? BS> I've looked through the source and docs, and I don't see anything BS> obvious. Is this something that is possible, or do I need to write an BS> ugly hack to pass this information on to the subagent? Contexts is definitely the way to get the info to the subagent. But mapping a context based on the destination address might require an ugly hack. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ 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
