Google Ads

Sunday, 15 December 2013 00:00

Install the SNMP service on Centos server

Rate this item
(0 votes)

Install the SNMP service on Centos

Install the SNMP service
#yum install net-snmp

#mv /etc/snmp/snmpd.conf /etc/snmp/
#vim /etc/snmp/snmpd.conf
and insert
rocommunity public 192.168.x.x
then replace 192.168.x.x with the IP address of the server that you want to allow SNMP lookups from:
Start the service
#/etc/init.d/snmpd start
and configure to start automatically
#chkconfig snmpd on
Run the command in order to open firewall
n shell console
and open UDP port 161 to your SNMP lookup server.
Finally test it as follows:
#snmpwalk -v 2c -c public 192.168.x.x


Read 28187 times Last modified on Monday, 28 December 2015 12:13