How to configure SNMP on--linux
--mount the ISO disc image file first
Mount-o Loop/soft/rhel-server-6.4-x86_64-dvd.iso/mnt/cdrom
--first check to see if the SNMP-related package is installed
# Rpm-qa|grep SNMP
--Here the package is installed through Yum to prevent dependencies
# yum Install net-snmp-*
--or each package is installed separately
RPM-IVH net-snmp-libs-5.3.2.2-17.el5.x86_64.rpm
--Configure the etc/snmp/snmpd.conf file after installing the required packages
Modify the snmpd.conf file as follows
1. Modify the default community string
Com2sec notconfiguser Default Public
Modify public to the specified string tppublic
2. Put the following statement
Access Notconfiggroup "" Any noauth exact systemview none None
Change to:
Access Notconfiggroup "" Any noauth exact mib2 none None
3. Remove the following # number
#view mib2 included. Iso.org.dod.internet.mgmt.mib-2 FC
--Start SNMPD service
Service SNMPD Start
or/ETC/RC.D/INIT.D/SNMPD.
--Set as boot start
$ chkconfig snmpd on
--View status
Chkconfig--list | grep snmpd
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Linux Configuration SNMP Service