1. Insert the corresponding version of the disc
The disc will load automatically, and if you have a desktop, you'll see such icons on your desktop.
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8F/42/wKioL1jZFVvRIAtdAAU7KhP4KM8941.png-wh_500x0-wm_ 3-wmp_4-s_1006938438.png "title=" 1.png "alt=" Wkiol1jzfvvriatdaau7khp4km8941.png-wh_50 "/>
If not, use the command mount
Mkdir/media/rhel
Mount/dev/cdrom/media/rhel
or use the command line to view the command as follows:
[Email protected]/]# df-h
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/8F/44/wKiom1jZFZqCxMfWAAAXkyGHVhM512.png-wh_500x0-wm_ 3-wmp_4-s_3359828567.png "title=" 2.png "alt=" Wkiom1jzfzqcxmfwaaaxkyghvhm512.png-wh_50 "/>
If you see such a result, the disc image is mounted
2. Use the RPM Query command to confirm that SNMP is installed
command: [[email protected] ~]# RPM-QL SNMP
Package SNMP isn't installed
Indicates that SNMP is not installed
3. Copy the following packages from the CD to the/root directory
[[email protected] ~]# ls
lm_sensors-2.10.7-9.el5.x86_64.rpm
lm_sensors-devel-2.10.7-9.el5.x86_64.rpm
net-snmp-5.3.2.2-9.el5_5.1.x86_64.rpm
net-snmp-utils-5.3.2.2-9.el5_5.1.x86_64.rpm
To prevent them from relying on each other, install the above four packages together
[Email protected] ~]# RPM-IVH lm_sensors-2.10.7-9.el5.x86_64.rpm lm_sensors-devel-2.10.7-9.el5.x86_64.rpm net-snmp-5.3.2.2-9.el5_5.1.x86_64.rpm net-snmp-utils-5.3.2.2-9.el5_5.1.x86_64.rpm
Warning:lm_sensors-2.10.7-9.el5.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:lm_sensors ########################################### [25%]
2:NET-SNMP ########################################### [50%]
3:lm_sensors-devel ########################################### [75%]
4:net-snmp-utils ########################################### [100%]
Or make a disc image into a yum source
Under the/ETC/YUM.REPOS.D directory, create a Cdrom.repo file that writes the following:
[Cluster]
Name=dvd
Baseurl=file:///media/rhel/cluster
Gpgcheck=0
Enabled=1
[Server]
Enabled=1
Name=dvd
Baseurl=file:///media/rhel/server
Gpgcheck=0
[Clusterstorage]
Name=dvd
Baseurl=file:///media/rhel/clusterstorage
Gpgcheck=0
Then execute the Yum install command
Yum Install Net-snmp
4. Configuring SNMP
After the installation is complete, use the following command to view the relevant directory for SNMP
[Email protected] ~]# RPM-QL NET-SNMP
Focus on the following documents:
/etc/snmp/snmpd.conf//Configuration file Storage path
/usr/sbin/snmpd//Command Store path
This article is from the "Dying Young Network Space" blog, so be sure to keep this source http://eric1026.blog.51cto.com/4754515/1910916
Linux Installation SNMP operation steps