General Information

How to install the net-snmp service for monitoring.


  • Distro(s): Enterprise Linux

  • Install net snmp
    yum install net-snmp-utils net-snmp

  • Create the SNMPv3 User
    net-snmp-create-v3-user -ro -A <Authpw> -X <Encryptionpw> -a SHA -x AES <snmpv3username>
    • Example:
      net-snmp-create-v3-user -ro -A MyAuthPW123 -X MyEncryptPW123 -a SHA -x AES systempoller

  • Comment out default user and group
    sed -i 's/^com2sec notConfigUser/#com2sec notConfigUser/' /etc/snmp/snmpd.conf
    sed -i 's/^group   notConfigGroup/#group   notConfigGroup/' /etc/snmp/snmpd.conf

  • Start the snmpd service
    • EL7
      systemctl start snmpd
    • EL6
      service snmpd start

  • Configure service to start at boot
    • EL7
      systemctl enable snmpd
    • EL6
      chkconfig snmpd on

  • Test the user
    snmpwalk -u <snmpv3username> -A <Authpassword> -a SHA -X <Encryptionpassword> -x AES -l authPriv -v3 | head

Location: /etc/snmp/snmpd.conf

Configure SNMP System Information

syslocation Datacenter, Row 3, Rack 2
syscontact UNIX Admin <>

  • linux_wiki/net-snmp.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)