How to test a SNMP configuration on Linux

What is the use of testing the SNMP configuration of a device ?
We will see how with snmpwalk

Presentation

The activation of a SNMP configuration on switch, router and firewall equipment is intended to make metrology.
This will make it possible to retrieve various and varied information (CPU, RAM, uptime, use of the interfaces, …) and to identify them on graphics (via cacti for example).


Test your configuration

To test an SNMP configuration, you can use the snmpwalk command :

V1 or v2c ((it is recommended to use v2c)
name of the community declare in the device to access the information
The IP or hostname address of the device to test
constructor identifier for obtaining device information

Each manufacturer has its own oid.
You can find OEMs on the website: http://www.oidview.com/mIBs/detail.html


Example of use

Here is an example of using snmpwalk command :

snmpwalk –v2c –c Vdtg7hKk @ip .1.3.6.1.4.1.2636.3.1.13.1.7

Result

iso.3.6.1.4.1.2636.3.1.13.1.7.9.1.0.0 = Gauge32: 40


Vote