- Published on
SNMP Configuration on RHEL
- Authors
- Name
- Jackson Chen
Reference Reading
https://www.systutorials.com/docs/linux/man/5-snmpd.examples/
SNMP3
SNMP v3 allows you to choose any combination of hashed authentication (auth) or encrypted data privacy (priv). If you want just authentication, choose auth. If you want just privacy, choose priv. If you want authentication without privacy, choose authNoPriv. If you want both, choose authPriv.
When using any mechanism that requires hashed authentication, your query must contain the username along with the password and the hashing algorithm.
When using any mechanism that requires data privacy, your query must contain the shared secret and the encryption algorithm.
Configure SNMP v2
https://getlabsdone.com/5-easy-steps-to-configure-snmp-on-redhat-linux-or-centos/
Configure SNMP v3
- Install snmp package
dnf install net-snmp net-snmp-utils net-snmp-libs net-snmp-devel
- Manually add the user to config file, edit /var/lib/net-snmp/snmpd.conf
service snmpd stop # stop snmp service before making changes
createUser <snmp-user> SHA AES # add to the end of the file
- Add the following line to the end of /etc/snmpd/snmpd.conf
rwuser <snmp-user>
- Enable SNMP service at boot time
systemctl enable snmpd
- Start snmpd daemon for change to take effect
systemctl restart snmpd
- Test SNMP service locally