Search My Techie Guy

Wednesday, February 10, 2016

Bash: snmpwalk: command not found - Linux OpenSUSE 13.2

Problem:

Server1:~ # snmpwalk
-bash: snmpwalk: command not found

Solution:

Install net-snmp using zypper install

Server1:~ # zypper install net-snmp
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 6 NEW packages are going to be installed:
  libsensors4 libsnmp30 net-snmp perl-SNMP perl-Term-ReadKey snmp-mibs 

6 new packages to install.
Overall download size: 1.7 MiB. Already cached: 0 B  After the operation, additional 6.9 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package perl-Term-ReadKey-2.32-2.1.5.x86_64                                                                                                                      (1/6),  28.8 KiB ( 62.4 KiB unpacked)
Retrieving: perl-Term-ReadKey-2.32-2.1.5.x86_64.rpm ...........................................................................................................................................[done (5.8 KiB/s)]
Retrieving package libsensors4-3.3.5-3.3.1.x86_64                                                                                                                           (2/6),  51.4 KiB (100.7 KiB unpacked)
Retrieving: libsensors4-3.3.5-3.3.1.x86_64.rpm ............................................................................................................................................................[done]
Retrieving package snmp-mibs-5.7.3-3.1.x86_64                                                                                                                               (3/6), 245.9 KiB (  1.6 MiB unpacked)
Retrieving: snmp-mibs-5.7.3-3.1.x86_64.rpm ...................................................................................................................................................[done (96.0 KiB/s)]
Retrieving package libsnmp30-5.7.3-3.1.x86_64                                                                                                                               (4/6), 853.0 KiB (  3.4 MiB unpacked)
Retrieving: libsnmp30-5.7.3-3.1.x86_64.rpm ..................................................................................................................................................[done (657.1 KiB/s)]
Retrieving package perl-SNMP-5.7.3-3.1.x86_64                                                                                                                               (5/6), 124.5 KiB (424.4 KiB unpacked)
Retrieving: perl-SNMP-5.7.3-3.1.x86_64.rpm ................................................................................................................................................................[done]
Retrieving package net-snmp-5.7.3-3.1.x86_64                                                                                                                                (6/6), 435.2 KiB (  1.3 MiB unpacked)
Retrieving: net-snmp-5.7.3-3.1.x86_64.rpm ...................................................................................................................................................[done (343.3 KiB/s)]
Checking for file conflicts: ..............................................................................................................................................................................[done]
(1/6) Installing: perl-Term-ReadKey-2.32-2.1.5 ............................................................................................................................................................[done]
(2/6) Installing: libsensors4-3.3.5-3.3.1 .................................................................................................................................................................[done]
(3/6) Installing: snmp-mibs-5.7.3-3.1 .....................................................................................................................................................................[done]
(4/6) Installing: libsnmp30-5.7.3-3.1 .....................................................................................................................................................................[done]
(5/6) Installing: perl-SNMP-5.7.3-3.1 .....................................................................................................................................................................[done]
(6/6) Installing: net-snmp-5.7.3-3.1 ......................................................................................................................................................................[done]
Additional rpm output:
Updating /etc/sysconfig/net-snmp...

Server1:~ # snmpwalk
Created directory: /var/lib/net-snmp/mib_indexes
No hostname specified.
USAGE: snmpwalk [OPTIONS] AGENT [OID]

  Version:  5.7.3.pre5
  Web:      http://www.net-snmp.org/
  Email:    net-snmp-coders@lists.sourceforge.net

No comments: