Robert Story put me on an alternate thinking path to a prior query I
made  regarding passing listener address to the subagents.   The
suggestion was to pass the context to the subagent - which is
seemingly supported.    I havent found any docs/pointers on how to do
that.  But after researching contexts, I thought it might be simpler
to parse the community string in the subagent instead  - and allow the
subagent to return a value to for a static oid besed on the community
string.

That turned out not to be so easy either, I did find an old post from
Dave Shield(2001-06-18):

"the easiest work around would be to make use of the
'snmp_check_parse()' routine" and set a global variable.

That seems to make sense to me. Dave also hinted that access to this
data(PDU data) might be available in a future release, and that the
snmp_check_parse() routine may not be supported in future versions of
net-snmp.

I looked through the 5.2 source did'nt see any refernces to the pdu
data being easily availalble in some structure accessable by the
subagent.  Is the "easiest workaround" still the only way to go?


-------------------------------------------------------
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

Reply via email to