Thanks Dave.
Yes, removing the user from the list will work. And also, everytime generating and copying the authKey from session to user will also work. Thanks for your suggestion. --regards Hemanth -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Friday, February 03, 2012 5:32 PM To: Hemanth Abbina Cc: [email protected]; Venkateswarlu Yalamandala Subject: Re: Issues with Net-SNMP 5.7.1 USM user list On 3 February 2012 11:45, Hemanth Abbina <[email protected]> wrote: > After some time, I changed the auth password for host X and would like to > change > the same in my client dynamically without rebooting my client. So I changed > it in > the session object and expecting to happen the same in the users list. This > is not happening. Hmmmm.... OK, I see what you mean. > It's in snmplib/snmpusm.c , usm_create_user_from_session(), tries to get the > user from the existing users list and won't changing the auth keys for that > user. No - it's assuming that if the user exists, then the information is valid. I'm not an expert in this area, and without consulting with those that are, I'm reluctant to start tinkering with the internals of snmpusm.c. The simplest workaround that I can suggest would be to call usm_remove_user() and usm_free_user() on this user, before calling usm_create_user_from_session() again. That would start again from a clean slate, and pick up the settings from the session. I'll see if Wes or one of the others has anything more to say about updating things automatically. Dave ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ 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
