This section briefly
describes each of the Net-SNMP tools. By default, installing Net-SNMP
places all these commands in
the examples in this section assume that
/usr/local/bin is in your path.
snmpwalk performs the get-next operation. We’ve used it throughout the book, so it should be familiar; in this section, we’ll use it to demonstrate some of the options introduced in Table C-1.
Let’s say you want to perform an snmpwalk against a Cisco router. If you don’t have any Cisco MIBs installed, here’s what you will see:
snmpwalk cisco.ora.com public .18.104.22.168.4.1.9enterprises.22.214.171.124.0 = "..System Bootstrap, Version 11.2(17)GS2, [htseng 180] EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)..Copyright (c) 1999 by Cisco Systems, Inc..." enterprises.126.96.36.199.0 = "reload" enterprises.188.8.131.52.0 = "cisco" enterprises.184.108.40.206.0 = "ora.com" enterprises.220.127.116.11.0 = IpAddress: 127.45.23.1 enterprises.18.104.22.168.0 = IpAddress: 0.0.0.0 enterprises.22.214.171.124.0 = 131890952 enterprises.126.96.36.199.0 = 456 enterprises.188.8.131.52.0 = 500 enterprises.184.108.40.206.0 = 17767568 enterprises.220.127.116.11.0 = 0 enterprises.18.104.22.168.0 = 0 enterprises.22.214.171.124.0 = 104 enterprises.126.96.36.199.0 = 600 ...
Recall that .188.8.131.52.4.1 is .iso.org.dod.internet.private.enterprises, and 9 is Cisco’s private enterprise number. Therefore, the previous command is walking the entire Cisco subtree, which is very large; we’ve deleted most of its output. The output you see isn’t very readable because ...