SNMP on Red Hat compatible system
One can use favorite package manager (for example yum) and install following packages:
yum install net-snmp net-snmp-utils
One can use direct editing of configuration file or cli utilities for this. It depends on your choice. SNMP daemon has two most important configuration files:
/etc/snmp/snmpd.conf - main config file /etc/sysconfig/snmpd.options - startup options of daemon
To open 161 port for local request one have to edit options file:
...and copy-paste string like this and then restart snmpd service:
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x 127.0.0.1 192.168.1.254"
second address is special on which snmp service should be listened (you can leave only 127.0.0.1 to listen server on main interface).
Make it easier...
SNMP provides utilities for testing and configuring own service, for example:
Tets your SNMP server
snmpwalk -v [1,2c,3] -c [community name] [snmp server address]