Wednesday, 3 August 2016

centOS - snmpd

1. yum install net-snmp-utils net-snmp
2. vim /etc/snmp/snmpd.conf
com2sec readonly default MyROGroup
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Malaysia, KL
syscontact xxx@yyy.com.my
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
3. mv distro /usr/bin/distro
4. chmod +x /usr/bin/distro
5. service snmpd restart
6. chkconfig snmpd on
7. iptables -I INPUT -p udp --dport 161 -j ACCEPT
    /sbin/service iptables save