Template:FAQ:Agent 25

From Net-SNMP Wiki
Revision as of 16:26, 23 November 2006 by Dts12 (Talk | contribs)

Jump to: navigation, search

There are three ways to configure SNMPv3 users:

  • Stop the agent, and create a file /var/net-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/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 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.