Polling information from the SNMP agent

An interesting tool to check for connections with SNMP servers and obtain the value of the SNMP variable is snmp-get, which is available for both Windows and Unix environments: https://snmpsoft.com/shell-tools/snmp-get/.

Other tools, such as snmpwalk (available at https://snmpsoft.com/shell-tools/snmp-walk/), allow us to obtain information about SNMP servers.

This is the syntax you can use to request information about a specific host:

snmpwalk -c:community -v:2c -r:host -os:[oid]

In the following screenshot, we can see the usage for the snmpwalk command:

At http://snmplabs.com/snmpsim/public-snmp-agent-simulator.html#examples, you can see some examples of executing the snmpalk command using the SNMP simulation service at demo.snmplabs.com.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset