Configure the snmp service in linux
-- How to Configure snmp on Linux
-- Attach an iso CD image file first
Mount-o loop/soft/rhel-server-6.4-x86_64-dvd.iso/mnt/cdrom
-- Check whether the snmp package is installed first.
# Rpm-qa | grep snmp
-- Install the package using yum to prevent Incomplete installation due to dependency.
# Yum install net-snmp -*
-- Or install each package separately
Rpm-ivh net-snmp-libs-5.3.2.2-17.el5.x86_64.rpm
-- Configure the etc/snmp/snmpd. conf file after the required package is installed.
Modify the snmpd. conf file as follows:
1. Modify the Default community string
Com2sec notConfigUser default public
Change public to the specified string tppublic.
2. Run the following statements:
Access notConfigGroup "" any noauth exact systemview none
Changed:
Access notConfigGroup "" any noauth exact mib2 none
3. Remove the # below
# View mib2 shortded .iso.org. dod. internet. mgmt. mib-2 fc
-- Start the snmpd service
Service snmpd start
Or/etc/rc. d/init. d/snmpd
-- Set to boot
$ Chkconfig snmpd on
-- View status
Chkconfig -- list | grep snmpd