How to install snmpwalk snmpget on CentOS 6.4 6.3 5.9 Redhat RHEL Fedora
Step 1: Check the command
[root@localhost ~]# snmpwalk
-bash: snmpwalk: command not found[root@localhost ~]#Step 2: Install snmpwalk and snmpget on CentOS, Redhat RHEL, Fedora
[root@localhost ~]# yum install net-snmp-utils
Loaded plugins: fastestmirror, refresh-packagekit, securityDetermining fastest mirrorsepel/metalink | 5.5 kB 00:00* base: centos-hcm.viettelidc.com.vn* epel: mirrors.vinahost.vn* extras: centos-hcm.viettelidc.com.vn* updates: centos-hcm.viettelidc.com.vnadobe-linux-x86_64 | 951 B 00:00adobe-linux-x86_64/primary | 1.2 kB 00:00adobe-linux-x86_64 2/2base | 3.7 kB 00:00chrome | 951 B 00:00chrome/primary | 1.9 kB 00:00chrome 3/3epel | 4.2 kB 00:00epel/primary_db | 5.5 MB 00:09extras | 3.4 kB 00:00extras/primary_db | 18 kB 00:00google-chrome | 951 B 00:00google-chrome/primary | 1.9 kB 00:00google-chrome 3/3updates | 3.4 kB 00:00updates/primary_db | 4.4 MB 00:07virtualbox | 951 B 00:00virtualbox/primary | 5.2 kB 00:00virtualbox: [################################################################################################################################################# ] 19/23Setting up Install ProcessResolving Dependencies–> Running transaction check—> Package net-snmp-utils.x86_64 1:5.5-44.el6_4.4 will be installed–> Processing Dependency: net-snmp-libs = 1:5.5-44.el6_4.4 for package: 1:net-snmp-utils-5.5-44.el6_4.4.x86_64–> Running transaction check—> Package net-snmp-libs.x86_64 1:5.5-44.el6_4.1 will be updated–> Processing Dependency: net-snmp-libs = 1:5.5-44.el6_4.1 for package: 1:net-snmp-5.5-44.el6_4.1.x86_64—> Package net-snmp-libs.x86_64 1:5.5-44.el6_4.4 will be an update–> Running transaction check—> Package net-snmp.x86_64 1:5.5-44.el6_4.1 will be updated—> Package net-snmp.x86_64 1:5.5-44.el6_4.4 will be an update–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================Package Arch Version Repository Size=====================================================================================================================================================================================================Installing:net-snmp-utils x86_64 1:5.5-44.el6_4.4 updates 172 kUpdating for dependencies:net-snmp x86_64 1:5.5-44.el6_4.4 updates 303 knet-snmp-libs x86_64 1:5.5-44.el6_4.4 updates 1.5 MTransaction Summary=====================================================================================================================================================================================================Install 1 Package(s)Upgrade 2 Package(s)Total download size: 2.0 MIs this ok [y/N]: yDownloading Packages:(1/3): net-snmp-5.5-44.el6_4.4.x86_64.rpm | 303 kB 00:00(2/3): net-snmp-libs-5.5-44.el6_4.4.x86_64.rpm | 1.5 MB 00:02(3/3): net-snmp-utils-5.5-44.el6_4.4.x86_64.rpm | 172 kB 00:00—————————————————————————————————————————————————————————————————–Total 370 kB/s | 2.0 MB 00:05Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionUpdating : 1:net-snmp-libs-5.5-44.el6_4.4.x86_64 1/5Installing : 1:net-snmp-utils-5.5-44.el6_4.4.x86_64 2/5Updating : 1:net-snmp-5.5-44.el6_4.4.x86_64 3/5Cleanup : 1:net-snmp-5.5-44.el6_4.1.x86_64 4/5Cleanup : 1:net-snmp-libs-5.5-44.el6_4.1.x86_64 5/5Verifying : 1:net-snmp-utils-5.5-44.el6_4.4.x86_64 1/5Verifying : 1:net-snmp-libs-5.5-44.el6_4.4.x86_64 2/5Verifying : 1:net-snmp-5.5-44.el6_4.4.x86_64 3/5Verifying : 1:net-snmp-5.5-44.el6_4.1.x86_64 4/5Verifying : 1:net-snmp-libs-5.5-44.el6_4.1.x86_64 5/5Installed:
net-snmp-utils.x86_64 1:5.5-44.el6_4.4Dependency Updated:
net-snmp.x86_64 1:5.5-44.el6_4.4 net-snmp-libs.x86_64 1:5.5-44.el6_4.4Complete!
[root@localhost ~]#