[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    RE: Reconfiguration of agent...
From:       Anurag Bhatia <Anuragb () ami ! com>
Date:       2002-06-28 20:31:56
[Download RAW message or body]

> 	-----Original Message-----
> 	From:	Dave Shield [SMTP:D.T.Shield@csc.liv.ac.uk]
> 	Sent:	Thursday, June 27, 2002 5:01 AM
> 	To:	Anurag Bhatia
> 	Cc:	net-snmp-users@lists.sourceforge.net
> 	Subject:	Re: Reconfiguration of agent... 
> 
> 	> Can someone suggest me to reconfigure the agent without restarting
> it so
> 	> that all v3 related details come into effect as they r in
> snmpd.conf ?
> 
> 	Probably the best way to manage SNMPv3 user information is to use
> the
> 	'snmpusm' command to manipulate this dynamically.   (I think there
> might
> 	be a similar mechanism using a command line option to 'snmpd'
> itself,
> 	but Wes is the expert on this stuff).
> 	[Anurag Bhatia]  I want to change user configuration on the fly, by
> changing .conf files and then directing agent to reconfigure itself
> without
> restarting it. As I mentioned in my previous mail that restarting agent
> gets
> the desired results. 
> 
> 	The problem you're seeing is probably because user information is
> set both
> 	in the 'static' snmpd.conf file (which I presume is the one you're
> editing),
> 	and the 'persistent/dynamic' /var/{ucd,net}-snmp/snmpd.conf files,
> which
> 	are used to remember the current settings.   I suspect that's the
> agent
> 	is reading your new settings, then replacing them with the current
> active
> 	settings.
> 	[Anurag Bhatia]  Initially, I was using only a static file and was
> updating it by adding "createUser ......." entry in that file itself. I
> tried using dynamic snmpd.conf (under /var/ucd-snmp) by adding "createUser
> ....." in this dynamic .conf. But even this doesn't solve the problem.
> 
> 	 > Restarting the agent gets me the desired results.
> 
> 	I'm actually surprised this works - I'd have expected this to be the
> same
> 	as re-reading the config.  (Assuming that the agent is being shut
> down
> 	cleanly - not <shudder> "kill -9")
> 	[Anurag Bhatia]  I assume that once agent finds a new user in
> snmpd.conf file, it calculates private keys for the user's password and
> use
> the same values until agent is restarted. Reconfiguring agent somehow, is
> not able to change this locally stored keys and that's the reason that
> even
> if I change user's password in snmpd.conf and reconfigure agent, I'm still
> able to connect to the agent using old password. 
> 	  But try using 'snmpusm', and see if that helps.
> 	 
> 
> 
> -------------------------------------------------------
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic