On Mon, Feb 8, 2010 at 2:23 PM, Dave Shield <[email protected]>wrote:

> On 8 February 2010 07:04, rakesh zingade <[email protected]> wrote:
> > Is there any way to change behavior of snmp agent (snmpd) dynamically by
> > putting configuration stuff to snmpd.conf?
> > for example in my case I have to run snmp agent continuously, restarting
> is
> > not permitted,
> > in normal situations if anyone updates snmpd.conf, to see these changes
> > reflect one have to restart the
> > agent process. Is there any way to reflect these changes without
> restarting
> > snmpd process?
>
> You can reload the config files by sending a HUP signal to the agent,
> or by issuing a SET request on UCD-SNMP-MIB::versionUpdateConfig.0
>
> Dave
>


Hi Dave,

Thanks for this suggestion. I tried UCD-SNMP-MIB::versionUpdateConfig.0
option that you had mentioned. I compiled versioninfo from ucd-snmp as
module and added to snmpd.conf using dlmod.

Its successfully updating the configure info whenever I executes set on
versionUpdateConfig.0 . but do this re-register earlier registered services?
for example I have snmpd.conf file a trap2sink line as follows
trap2sink  localhost:162 public

and started the snmpd process after some time I edited the snmpd.conf and
added one more trap2sink below the above one, the snmpd.conf looks like

trap2sink  localhost:162 public
trap2sink  192.168.1.10:162 public

and executed a set operation on versionUpdateConfig.0, as a result my snmp
agent started sending traps to 192.168.1.10 machine but it sents two traps
to localhost instead of just one. Two same traps forwared to localhost and
one to 192.168.1.10. Why this is happing? is this snmp set registaring
localhost trap2sink twice? Is there any solution to suppress this behavior?
am using net-snmp 5.4.2.1

Thanks and Regards...



-- 
Rakesh P. Zingade
+919420626099
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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