Template:FAQ:Agent 25
From Net-SNMP Wiki
There are three ways to configure SNMPv3 users:
- Stop the agent, and create a file /var/ucd-snmp/snmpd.conf, containing the line
createUser {myUser} MD5 {myPassword} DES
(where {myUser} and {myPassword} are the appropriate values, without the braces!). Then re-start the snmpd agent.
- Stop the agent, run the command
net-snmp-config --create-snmpv3-user
and follow the instructions. This will create an entry
in the /var/ucd-snmp/snmpd.conf
file similar to the above.
Then re-start the snmpd agent.
- Make sure the agent is running, and will respond to a suitable existing SNMPv3 user (with the same Authentication and Encryption protocols as required for the new user). 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 user. You will need the
above 'createUser'
line (or an equivalent 'usmUser'
) as well.