Category Archives: SNMP

Create SNMPv3 User

$ sudo net-snmp-config --create-snmpv3-user -ro -X DES -A MD5 -a "<PASSWORD>" -x "<PASSWORD>" <USERNAME>
adding the following line to /var/lib/snmp/snmpd.conf:
   createUser <USERNAME> MD5 "<PASSWORD>" DES <PASSWORD>
adding the following line to /usr/share/snmp/snmpd.conf:
   rouser <USERNAME>

Change SNMP Location and Contact

syslocation  "Zurich, Switzerland"
syscontact  "Hans Müller <hans@mueller.ch>"

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser snmpuser

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity public
rocommunity  test