Install the SNMP service on CentOS.
yum install net-snmp
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
vim /etc/snmp/snmpd.conf
rocommunity public 192.168.x.x
P.S. - Replace 192.168.x.x with the IP address of the server that you want to allow SNMP lookups from:
/etc/init.d/snmpd start
chkconfig snmpd on
In firewall open UDP port 161 to your SNMP lookup server.
And Test -
snmpwalk -v 2c -c public 192.168.x.x
yum install net-snmp
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
vim /etc/snmp/snmpd.conf
rocommunity public 192.168.x.x
P.S. - Replace 192.168.x.x with the IP address of the server that you want to allow SNMP lookups from:
/etc/init.d/snmpd start
chkconfig snmpd on
In firewall open UDP port 161 to your SNMP lookup server.
And Test -
snmpwalk -v 2c -c public 192.168.x.x