Difference between revisions of "Template:FAQ:Agent 25"

From Net-SNMP Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
There are three ways to configure SNMPv3 users:
 
There are three ways to configure SNMPv3 users:
  
* Stop the agent, and create a file /var/ucd-snmp/snmpd.conf, containing the line
+
* Stop the agent, and create a file /var/net-snmp/snmpd.conf, containing the line
  
 
   createUser {myUser} MD5 {myPassword} DES
 
   createUser {myUser} MD5 {myPassword} DES
Line 13: Line 13:
  
 
and follow the instructions.  This will create an entry
 
and follow the instructions.  This will create an entry
in the <CODE>/var/ucd-snmp/snmpd.conf</CODE> file similar to the above.
+
in the <CODE>/var/net-snmp/snmpd.conf</CODE> file similar to the above.
 
Then re-start the snmpd agent.
 
Then re-start the snmpd agent.
  

Revision as of 16:26, 23 November 2006

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.