Install snmpwalk snmpget on CentOS 6.4 6.3 5.9 Redhat RHEL Fedora

How to install snmpwalk snmpget on CentOS 6.4 6.3 5.9 Redhat RHEL Fedora

centos

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, security
Determining fastest mirrors
epel/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.vn
adobe-linux-x86_64 | 951 B 00:00
adobe-linux-x86_64/primary | 1.2 kB 00:00
adobe-linux-x86_64 2/2
base | 3.7 kB 00:00
chrome | 951 B 00:00
chrome/primary | 1.9 kB 00:00
chrome 3/3
epel | 4.2 kB 00:00
epel/primary_db | 5.5 MB 00:09
extras | 3.4 kB 00:00
extras/primary_db | 18 kB 00:00
google-chrome | 951 B 00:00
google-chrome/primary | 1.9 kB 00:00
google-chrome 3/3
updates | 3.4 kB 00:00
updates/primary_db | 4.4 MB 00:07
virtualbox | 951 B 00:00
virtualbox/primary | 5.2 kB 00:00
virtualbox: [################################################################################################################################################# ] 19/23Setting up Install Process
Resolving 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 Resolution
Dependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
net-snmp-utils x86_64 1:5.5-44.el6_4.4 updates 172 k
Updating for dependencies:
net-snmp x86_64 1:5.5-44.el6_4.4 updates 303 k
net-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 M
Is this ok [y/N]: y
Downloading 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:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : 1:net-snmp-libs-5.5-44.el6_4.4.x86_64 1/5
Installing : 1:net-snmp-utils-5.5-44.el6_4.4.x86_64 2/5
Updating : 1:net-snmp-5.5-44.el6_4.4.x86_64 3/5
Cleanup : 1:net-snmp-5.5-44.el6_4.1.x86_64 4/5
Cleanup : 1:net-snmp-libs-5.5-44.el6_4.1.x86_64 5/5
Verifying : 1:net-snmp-utils-5.5-44.el6_4.4.x86_64 1/5
Verifying : 1:net-snmp-libs-5.5-44.el6_4.4.x86_64 2/5
Verifying : 1:net-snmp-5.5-44.el6_4.4.x86_64 3/5
Verifying : 1:net-snmp-5.5-44.el6_4.1.x86_64 4/5
Verifying : 1:net-snmp-libs-5.5-44.el6_4.1.x86_64 5/5

Installed:
net-snmp-utils.x86_64 1:5.5-44.el6_4.4

Dependency Updated:
net-snmp.x86_64 1:5.5-44.el6_4.4 net-snmp-libs.x86_64 1:5.5-44.el6_4.4

Complete!
[root@localhost ~]#

Step 3: Now you had snmpwalk and snmpget on your CentOS, Redhat, Fedora

[root@localhost ~]# snmpwalk
No log handling enabled – turning on stderr logging
Created directory: /var/lib/net-snmp/mib_indexes
No hostname specified.
USAGE: snmpwalk [OPTIONS] AGENT [OID]
Version: 5.5
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.netOPTIONS:
-h, –help display this help message
-H display configuration file directives understood
-v 1|2c|3 specifies SNMP version to use
-V, –version display package version number
SNMP Version 1 or 2c specific
-c COMMUNITY set the community string

Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>