Hi Dave and all,
I finally found the problem, but not yet the solution.
This is the sequence:   1.- The first time that the snmpd is launched, there is 
no persistent file present, so it is generated from my configuration file   2.- 
This first time, each user line in persistent data has the next format:       
usmUser 1 3 0x800000a2050100080000 0x6169766f707300 0x6169766f707300 NULL 
.1.3.6.1.6.3.10.1.1.2 0x9a8df6d687407f418ebece43b8e0bdb3 .1.3.6.1.6.3.10.1.2.1 
"" ""   3.- Next times the agent is re-launched, the persistent file is 
present, but (I don't know why) this lines now has next format:       usmUser 1 
3 0x800000a2050100080000 0x6169766f707300 0x6169766f707300 NULL 
.1.3.6.1.6.3.10.1.1.2 0x9a8df6d687407f418ebece43b8e0bdb3 .1.3.6.1.6.3.10.1.2.1 
0x 0x00
Note that the only difference is at the end of the line, in the values which 
are not configured and set by default. The first time they are set to "" but 
then they are set to zeros.This difference makes impossible to change the 
password with snmpusm command the first time (with ""). Next times it is 
possible to change it (with zeros).
Does anyone know the reason and/or the solution?
P.D. I create the users by setting in my configuration file (not in the 
persitent file) lines with the next format (depending on the type of user):   
createUser $user  MD5 "default-auth"   createUser $user  MD5 "default-auth" DES 
"default-priv"

> Date: Tue, 8 Nov 2011 17:11:25 +0000
> Subject: Re: Create users and change passwords
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> On 27 October 2011 10:21, Miguel Toledano Ortega <[email protected]> 
> wrote:
> >     - When I want to change the engineID, I remove the persistent one and
> > launch the snmp daemon only with the human-readable. Then the persistent
> > file is re-generated
> >                      [but] the new usmUser lines does not
> > include the engineID in hexadecimal.
> 
> How are you creating the USM user when you restart the agent?
> What are the exact snmpd.conf directives that you are using,
> and where are you putting them?
> 
> What is the format of the usmUser line that is created?
> 
> 
> > With the new persistent file I´m not able to change the password
> > of the user $user with the command
> > "snmpusm -v 3 -u $adminUser -l authPriv -x DES -X $adminPassphrase -a MD5 -A
> > $adminPassword $IP:$Port -Ca passwd $current_password $new_password $user"
> 
> Can you query the agent using SNMPv3 and the user $user
> (with the current password)?
> 
> Dave
                                          
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
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