2010/5/27 Dave Shield <[email protected]> > On 26 May 2010 16:55, Weiwei Zhang <[email protected]> wrote: > > What happens in my test is that, when re-config is set, the agent snmpd > read > > the snmpd.conf, not the snmp.local.conf. > > No - the agent will read *both* snmpd.conf (& snmpd.local.conf) > for agent-specific configuration *and* snmp.conf (& snmp.local.conf) > for library configuration. > > But these contain different sets of directives. > > If the agent comes across agent-specific entries in snmp.conf (or > snmp.local.conf) > then it will ignore them - probably generating a warning. > If the agent comes across library-specifci entries in snmpd.conf (or > snmpd.local.conf) > then it will also ignore them - again, generating a warning.
So it should be effective I change the snmpd.local.conf if I want the snmpd to re-config its configuration. I'll try more testing. > > > So I think it is the snmpd.conf that controls the agent's behavior. > > snmpd.conf controls the behaviour of the agent. > snmp.conf controls the behaviour of the library (which may also affect > the agent) I didn't find the snmp.conf, maybe it is not included in my project. Under /etc/snmp/, I only find the snmpd.conf and snmpd.local.conf. You mentioned agent, do you mean process snmpd on linux system? > > > > But I don't know what is the snmp.local.conf used for in net-snmp > package. > > Could you give me some hints, Dave? > > Please read the snmp.conf(5) man page. > > Dave > -- --- Best Regards Weiwei Zhang
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
