I think I know the answer to this question by code inspection. Is it possible to obtain the SNMP community of a given request when you are in the agentx subagent?
I think that the answer is 'no'. It looks like there is code that will optionally write a context into the community part of a pdu - but it doesn't really look like it this can be set by the agentx master (at least not with standard APIs). I find myself wanting to be both a 'server' in my agentx subagent (what 99.9% of the world does). But I also want to be able to send set requests in my agentx subagent (i.e. be a client) and I wanted to 'steal' the community string of the incoming request in order to use in my outgoing set request. I am guessing that this is NOT possible without patching the master agent, yes? I hope that I am wrong. Thanks, John -- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
