Snmp-CentOS install Net-SNMP Subtotal
Net-snmp is a software.
Then, my goal is to first install net-snmp to CentOS, and then import the netsnmp module used by python.
That is:
For the ultimate goal
-------------------------------
Configure SNMP and centossnmp for CentOS
Software Installation
Switch to the system administrator account
Install snmpCheck that the snmp agent is installed.Rpm-q net-snmpIf not, install snmpYum install net-snmp
Set automatic snmp running upon startup/Sbin/chkconfig snmpd
Configure SNMP in CentOS[Plain] view plaincopyprint?
Software Installation
Switch to the system administrator account
Install snmpCheck that the snmp agent is installed.Rpm-q net-snmpIf not, install snmpYum install net-snmp
Set automatic snmp running upon startup/Sbin/ch
Configure SNMP for CentOS
Software Installation
Switch to the system administrator account
Install snmpCheck that the snmp agent is installed.Rpm-q net-snmpIf not, install snmpYum install net-snmp
Set automatic snmp running upon startup/Sbin/chkconfig snmpd on Configure snmp
Net-SNMP is a free, open-source SNMP implementation, formerly called UCD-SNMP. It includes the source code of agent and multiple management tools and supports multiple extension methods. [1] It not only extends the acquisition method, but also extends the data type.
Install Net-SNMP
I don't know why the net-snmp built-in in centos cannot catch a lot of information, and the CPU network traffic memory cannot catch it. After a while, I decided to use the code to compile and pull it down. Wgethttp: // downloads.sourceforge.net/project/net-snmp/net-snmp/5.4.4/net-s
1. Preparation environmentYum-y install make gcc gcc-c++ gcc-g77 OpenSSL openssl-develCommon Lib installation can refer to this article2. Compiling and installingFirst we need to download the source code of NET-SNMP,Official address:http://sourceforge.net/projects/net-snmp/files/net-snmp/Download net-snmp-5.6.2: http:/
host name is not available, check the remote Linux Firewall [[email protected] ~]. # Snmpwalk-V 2C-C public localhost 1.3.6.1.4.1.2021.11.11.0ucd-SNMP-MIB: sscpuidle.0 = no more variables left in this MIB view (it is past the end of the MIB Tree) # The above indicates that the CPU idle status cannot be obtained (Note: 1.3.6.1.4.1.2021.11.11.0 is the oId of the CPU idle rate of the host)
5. To obtain important host information, modify the default conf
The SNMPv3 security header uses user-safe mode (USM), which provides network management communications with confidentiality and integrity. Confidentiality is provided through the adoption of data encryption standards (DES). Although this algorithm is known for its fragility (since it employs a 40-bit key), it has significant advantages over plaintext community strings. Even a fragile algorithm like des can be compromised by a concerted attack, so you could at least guard against accidental eaves
Install SNMP in CentOS
1. Make sure that the snmp service is installed on the Linux host.
Rpm-qa | grep snmp
Net-snmp-libs-5.1.2-11.EL4.7Net-snmp-5.1.2-11.EL4.7
If not, find the snmp rp
I don't know why the net-snmp built-in in centos cannot catch a lot of information, and the CPU network traffic memory cannot catch it.
After a while, I decided to use the code to compile and pull it down.
Wget http://downloads.sourceforge.net/project/net-snmp/net-snmp/5.4.4/net-sn
Installation:Yum install Net-snmp net-snmp-utils (test tool)Configuring SNMPEdit/etc/snmp/snmpd.confChange group nameFind a line such as downlink# Sec.name Source CommunityCom2sec notconfiguser Default PublicChange the community name public to any other field, for example:com2sec notconfiguser Default MonitGive readable permissionFind a line such as downlink# Gro
Down, everyone, follow these commands, and you can quickly and securely install the NET-SNMP.
Copy Code code as follows:
Yum Install Net-snmp
Yum Install Net-snmp-utils
First use the Yum command to install NET-SNMP and net-snmo-utils
Copy Code code as follows:
Rm/etc/
Install and use SNMP in CentOSGuideThe Simple Network Management protocol (SNMP) is composed of a set of network management standards, including an application layer protocol, a database schema, and a group of resource objects. This protocol supports network management systems to monitor whether devices connected to the network have any management concerns. This Protocol is part of an Internet protocol clus
Run the following commands to install net-snmp quickly and securely.
Copy codeThe Code is as follows: yum install net-snmp
Yum install net-snmp-utils
First, use the yum command to install net-snmp and net-snmo-utils.Copy codeThe Code is as follows: rm/etc/snmp/snmpd. conf
1. make sure that the snmp service rpm-qa | grepsnmp is installed on the Linux host. If no, find the snmp rpm package on the Linux installation disk for installation, you can also search for an rpm package suitable for your Linux version on the Internet to install it, or use yum.2. to install yuminstall-ynet-snmpnet-snmp-
1. make sure that the
1. Installing the SNMP Service[[email protected]] Yum install-y net-snmp net-snmp-utils2. Configuring the SNMP ServiceThe first step:(Yum installs SNMPD configuration file for/etc/snmp/snmpd.conf, a very detailed document, first back up a copy of the snmpd.conf)[[email prote
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.