On Mon, Jun 14, 2010 at 10:47 AM, Joao Ferreira gmail <
joao.miguel.c.ferre...@gmail.com> wrote:
> On Mon, 2010-06-14 at 08:26 -0400, Fulko Hew wrote:
>
> > getSourceIp and getDestIp can be used to find the requestor and the
> > target addresses.
>
> Ok, that is great... but... what version of net-snmp are you using ?
>
> I tried to do it in 5.4.1 and it does not work...
>
It looks like it didn't make it in until the 5.5 release.
(you could always look into agent.pm, agent.c, agent.xs and backport it
yourself
It shouldn't be anymore than a cut-n-paste of the two routines.)
> I had added these so that agents could have different behavior based
> on the
> address they were called with. and so that agent could know (for
> debugging purposes?)
> who called them.
>
> The routines are in NetSNMP/agent.pm
>
> Fulko
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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