Template:FAQ:Agent 25
From Net-SNMP Wiki
Revision as of 09:41, 8 June 2009 by Dts12 (Talk | contribs) (Latest FAQ revision - preparing for 5.5 release)
There are three ways to configure SNMPv3 users:
- Stop the agent, and add the line
createUser {myUser} MD5 {myPassword} DES
to the file /var/net-snmp/snmpd.conf
(where {myUser} and {myPassword} are the appropriate values
for username and password, without the braces!). Then re-start the snmpd agent.
- Stop the agent, run the command
net-snmp-config --create-snmpv3-user
and follow the prompts given. This will create an entry
in the /var/net-snmp/snmpd.conf
file similar to the above.
Then re-start the snmpd agent.
- Make sure the agent is running, and will respond to an SNMPv3 request (using an existing user with the desired authentication and privacy protocols). Then use the
'snmpusm'
command to clone this template user, and change the password.
See the access control entries above and the file 'README.snmpv3'
for more details about how to use SNMPv3 users,
Note that simply having a 'rouser'
or 'rwuser'
line does not
automatically create the corresponding SNMPv3 user. You will need the
above 'createUser'
line (or an equivalent 'usmUser'
) as well.