Configure the snmp service in linux and snmp in linux

Source: Internet
Author: User

Configure the snmp service in linux and snmp 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



Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.