This is just a command list to help me remember the steps.

yum -y install net-snmp net-snmp-utils net-snmp-perl net-snmp-python net-snmp-devel
chkconfig --levels 2345 snmpd on
chkconfig --levels 2345 snmptrapd on
service snmpd start
iptables -I INPUT 3 -p udp -s 0/0 --sport 1024:65535 --dport 161:162 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables-save > /etc/sysconfig/iptables
snmpwalk -v 1 -c public -O e 127.0.0.1
cat /etc/sysconfig/iptables



Use at your own risk.