How to install snmpwalk on Centos/Ubuntu?

Snmpwalk is a SNMP application that uses SNMP GETNEXT requests to query a network entity for a tree of information. It is a great tool for Linux boxes. You can easily list all OIDs a SNMP host has to offer then filter the results to your needs and find OIDs to import into tools like Cacti.

How to install snmpwalk?

On Centos/RedHat machines you can install snmpwalk using yum

1 2 yum install netsnmputils

On Ubuntu install snmpwalk using apt-get

1 2 3 aptget install snmp

 

How to use snmpwalk?

You can query snmp agent using snmpwalk , see the following example

1 2 3 snmpwalk v2c c public 192.168.2.21

Sample output is as shown in the image

snmpwalk

 

If you know the OID , you can get it by specifying OID in the commandline as shown below. User Manuals

 

1 2 3 snmpwalk v2c c  SNMP_Community1   192.168.2.1 1.3.6.1.4.1.21067.2.1.2.4.2

In the above command “1.3.6.1.4.1.21067.2.1.2.4.2” is the OID.

 

 

Author: , 0000-00-00