On Fri, 15 Apr 2005 10:41:18 +0200 Christian wrote: CJ> I know it's not really something that one usually wants, but I really CJ> need to get ahold of the (local) IP-adress/interface on which the CJ> snmp-request was received, where it came from (who requested) is not at CJ> all important. The important thing is which of my local interfaces CJ> (which IP-address) originally received the request.
And On Fri, 15 Apr 2005 09:53:57 -0400 Robert wrote: RS> I'm pretty sure you can find the peer address in there somewhere, but I'm RS> not sure about the local address. RS> RS> The easiest way to do that would be to have a different community string RS> for each address. I hadn't had my caffeine yet... you can do this by setting up contexts in the snmpd.conf file access control. See the context discussion at http://www.freesnmp.com/net-snmp/faqs/#multidev So in each module's init routine, you just have to register each object/table that will respond differently N times with N contexts, where N is the number of interfaces. Note that if you are using sub-agents for this, I believe 5.2.1 is required (5.1.2 might work, I can't remember). Earlier releases didn't pass context info to sub-agents... -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <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. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users