Thursday, December 12, 2013

snmp setup on CentOS

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

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...