On 24 November 2011 15:11, Vivek Nagaraj <[email protected]> wrote:
> Ok. Lets say I am building a sub agent (of course using net-snmp
> libraries)

OK - if you are talking about a subagent, then the access control
configuration is not relevant.   All of this is handled by the master agent.
A subagent would never see the community string (if any)

Similarly the configuration of trap destinations (trapsink, etc)
is also the responsibility of the master agent.   The subagent would
simply send all notifications to the master agent.
   This is handled automatically by the Net-SNMP subagent framework.


>             and the user is intended to make changes in the snmpd.conf
> and I am supposed to make common changes for snmpd as well as my
> subagent.

Any configuration that should be held in common by the master
agent and subagent would be handled via the config file 'agentx.conf'
Currently, the only recognised tokens are

    agentxsocket
    agentxperms
    agentxretries
&  agentxtimeout



> Can you please let me know how community is chosen with the community
> string being present in various places such as trapcommunity, trapsink
> commands and as well in the access control panel.

The community string(s) used for generating traps have absolutely
nothing to do with the community strings used in access control.
   One is used for outgoing requests - the other is used for incoming
requests.   Within the SNMP framework, these are regarded as being
two completely different "applications" - they just happen to be combined
within a single binary.


Dave

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to