InterMapper provides a simple SNMPWalk command, available from the Monitor menu, that allows you to perform an SNMPWalk on a specified OID. In some cases this may not be sufficient. You can also execute SNMPWalk as a server command, and include specific arguments as described below.
The InterMapper server implements a simple snmpwalk facility in its debug mode.
snmpwalk -v [1|2c|3] -c community -o filename [-e] [-n num-OIDs] -p 161 -r 3 -t 10 IP-address startOID
where:
The command will start an SNMP walk on device with the specified IP-Address, starting from the given startOID. The walk will end when the specified number of OIDs has been received. The walk will also end if the OID received from the device does not have the specified start OID as its prefix unless -e is specified. If -e is specified, the walk will continue until the end of the MIB or the specified maximum OIDs have been received.
Note: For SNMPv3, community should be in the following format:
username:[md5|sha|none]:authpassword:[des|none]:privpassword
Example: SNMP walk of the ifTable of a device with IP address 192.168.1.1 using SNMPv2c with community string public:
snmpwalk -v 2c -c public 192.168.1.1 1.3.6.1.2.1.2.2
Example: SNMP walk of the ifXTable of a device with IP address 10.10.2.20 using SNMPv3 with user name 'user', authentication protocol MD5, authentication password 'auth', privacy protocol DES and privacy password 'priv':
snmpwalk -v 3 -c user:md5:auth:des:priv 10.10.2.20 1.3.6.1.2.1.31.1.1
Example: SNMP walk of the ifTable of a device with IP address 192.168.1.2 using SNMPv3 with user name 'test', authentication protocol MD5, authentication password 'pass', and no privacy protocol:
snmpwalk -v 3 -c test:md5:pass:none: 192.168.1.2 1.3.6.1.2.1.2.2
Example: Walk starting from the ifTable until the end of the device is reached or until 10,000 OIDs have been received:
snmpwalk -v 1 -c public -e -n10000 192.168.1.1 1.3.6.1.2.1.2.2
You execute the snmpwalk command as a "Server command..." (available from the Help menu's Diagnostics menu) To use this command:
SNMPWalk 192.168.1.1: prefix 1.3 (maximum number of OIDs: 2000)
-- 9/16/2005 13:04:56
SNMPWalk on 192.168.1.1 started
SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.1.0 = OctetString: ExampleOS
SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.2.0 = OID: 1.3.6.1.4.1.9.1
SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.3.0 = TimeTicks: 11058776 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.4.0 = OctetString: support@example.com SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.5.0 = OctetString: Example.com Router
SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.6.0 = OctetString: http://www.example.com SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.7.0 = Integer: 72 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.8.0 = TimeTicks: 413 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.9.1.2.1 = OID: 1.3.6.1.2.1.1.9.1 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.9.1.3.1 = OctetString: See RFC2580 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.1.9.1.4.1 = TimeTicks: 413 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.2.1.0 = Integer: 2 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.2.2.1.1.1 = Integer: 1 SNMPWalk 192.168.1.1: 1.3.6.1.2.1.2.2.1.1.2 = Integer: 2 ... SNMPWalk 192.168.1.1: Finished (end of MIB reached) -- 9/16/2005 13:09:48
To stop all SNMPwalks for a particular server, you can enter this command in the Server command... window.
snmpwalk stopall
InterMapper detects the following error conditions:
There is also documentation in the InterMapper's telnet help. Typing 'help snmpwalk' in the telnet window will display a summary of the command.