How to Install SNMP and Configure the Community String For CentOS
Install the SNMPD service by running the following command:
yum install net-snmp net-snmp-utils
Once the service is installed, verify that it is set to start at startup by running:
chkconfig snmpd on
systemctl enable snmpd
Make a backup of the original configuration file by running:
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
Create a new SNMP configuration file by running:
Once you have the new configuration file, generate a random string for the SNMP community string using a tool such as
Once you have the string, edit /etc/snmp/snmpd.conf and add the following line, replacing [RANDOM_STRING] with the generated string:
Save the configuration file, and finally start the SNMP service by running:
service snmpd restart
systemctl restart snmpd
Article ID: 2390
Created: July 6, 2016 at 9:46 AM
Modified: February 10, 2017 at 9:33 AM
Was this article helpful?
Thanks for your feedback...
50% of people found this helpful.
Share this article
Other Social Networks
Share With Others
Send Reset Email
Please log in below
Not Logged In
You must be logged in to perform this action.