Template:FAQ:Agent 25

From Net-SNMP Wiki
Jump to: navigation, search

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.