[ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]

On Wed, 2008-08-27 at 15:15 +0200, Marco Mussini wrote:
> Hi Magnus, thanks a lot for your answer; I understand.
> However in our application we do have the special need to propagate
> the manager address information to the subagents, and not for security
> reasons - actually, for functional reasons.

That do sound very odd, why should it matter what machine it is that
asks the question unless it is security?

> So I wonder if there is a way to register some custom handler code in
> the master agent, for example, so that it can do something with the
> source IP address found in the received PDU: for example it could
> append that information to the list of existing Varbindings before
> passing the PDU on to the subagents. This way the subagents will be
> able to access that information as needed.

That would probably be possible (it's software, everything is
possible...), but I think it would be a really bad idea to do this, not
least since it would mean that you would be lying to your subagent and
not speaking proper AgentX

> In your opinioni is this something that could be achieved
> using/abusing the existing hooks/registration mechanisms, without
> changing NetSNMP code?

You have to add things to the master agent but it could be done, with
that said I wish to repeat that it probably would be a really bad idea.

/MF


-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to