Re: How to clean USM config

2017-03-03 Thread Rajmohan Banavi
If you want to delete the existing v3 user list, then you can
delete/move/rename the persistent snmpd.conf file (typically in
/var/net-snmp/ folder) which contains the hashed list of the users.

On Wed, Feb 22, 2017 at 9:03 PM, 徐 勇  wrote:

> Hi,
>
>
> I used Net-SNMP in my project, and I found that when I had added an snmpv3
> user by snmpd.conf (createUser directive), I cannot change the auth/priv
> password of the user by updating snmpd.conf, even have a restarting the
> snmpd process.
>
>
> And then I found this is caused by the usm lists. it seems a global usm
> lists is used to stored the password, and the list is not belong to snmpd.
> Even when I stop snmpd, or delete the v3 user, I can get the system usm
> record which is added by the createUser directive ( I use snmp-walk on 
> 1.3.6.1.6.3.15.1.2.2.1
> for checking this).
>
>
> I know snmpusm tool can update the usm password, but that tool need
> another RW v3 user. I'm wondering if there's a convenient method to modify
> the password of an existed v3 user, or delete/cleanup the exited usm list ?
>
>
> Thanks
>
> Yong
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> 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
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
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


How to clean USM config

2017-02-22 Thread 徐 勇
Hi,


I used Net-SNMP in my project, and I found that when I had added an snmpv3 user 
by snmpd.conf (createUser directive), I cannot change the auth/priv password of 
the user by updating snmpd.conf, even have a restarting the snmpd process.


And then I found this is caused by the usm lists. it seems a global usm lists 
is used to stored the password, and the list is not belong to snmpd. Even when 
I stop snmpd, or delete the v3 user, I can get the system usm record which is 
added by the createUser directive ( I use snmp-walk on 1.3.6.1.6.3.15.1.2.2.1 
for checking this).


I know snmpusm tool can update the usm password, but that tool need another RW 
v3 user. I'm wondering if there's a convenient method to modify the password of 
an existed v3 user, or delete/cleanup the exited usm list ?


Thanks

Yong
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
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