Document toolboxDocument toolbox

snmpwalk command

This command helps to obtain a tree of information from a network device using automatic SNMP GETNEXT commands. In NetMRI’s administrative shell version of the snmpwalk command, you can specify the SNMP (Simple Network Management Protocol) version, the community string, and the desired Root Object ID (OID).

For SNMP v3, you can additionally specify the encryption protocol from the following:
Privacy Protocol

  • aes-128

  • aes-192

  • aes-192-C (for Cisco devices only)

  • aes-256

  • aes-256-C (for Cisco devices only)

  • des

  • 3des

Authentication Protocol

  • md5

  • sha

  • sha-224

  • sha-256

  • sha-384

  • sha-512

Syntax

The following is the command syntax:

snmpwalk

Command Syntax Examples

The snmpwalk command in the admin shell is used to collect data from devices that support SNMP. In this section, we provide instances of snmpwalk command outputs for each of the specified protocols, including both legacy and non-legacy command examples. This will assist in understanding and configuring the different SNMP values of aes-192c, aes-256c, aes-192-c, and aes-256-c privacy types.

Note

Before executing, the command requests additional information. If the NetMRI appliance contains only one network view, you will not need to enter this value.

The output of the legacy and non-legacy snmpwalk commands is as follows:

Using AES-192-C for legacy snmpwalk

sn-11-9> snmpwalk Use legacy snmpwalk tool [n]: y Enter SNMP hostname or IP address []: 172.19.11.15 Enter Network View []: mgmt Enter SNMP version (1, 2c, 3) []: 3 Enter SNMP Username []: md5aes192Cuserfortest SNMP Authentication [n]: yes Enter SNMP Authentication Passphrase []: snmpv3md5AuthLongString Enter SNMP Authentication Protocol (MD5/SHA/SHA-224/SHA-256/SHA-384/SHA-512) []: MD5 SNMP Privacy [n]: yes Enter SNMP Privacy Passphrase []: snmpv3aes192CPrivLongString Enter SNMP Privacy Protocol (DES/3DES/AES-128/AES-192/AES-256/AES-192-C/AES-256-C) []: AES-192-C Enter Root OID to start walk [1.3.6.1.2.1.1]: +++ Executing snmpwalk ... ####################################################################### # Generated by NetMRI Administrator SNMP Walk # SerialNo : VM-0792-B838C # SNMP Host: 172.19.11.15 # SNMP Root: 1.3.6.1.2.1.1 # StartTime: Mon 18 Sep 2023 03:06:23 AM EDT ####################################################################### RFC1213-MIB::sysDescr.0 = STRING: "SNMPv3 Host with DES/AES/AES(Cisco) privacy and MD5/SHA authorization" RFC1213-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (931212468) 107 days, 18:42:04.68 RFC1213-MIB::sysContact.0 = STRING: "NA-QA <na-qa@infoblox.com>" RFC1213-MIB::sysName.0 = STRING: "netmri-snmpv3.inca.infoblox.com" RFC1213-MIB::sysLocation.0 = STRING: "Core Site DC, vCenter6, ESXi6.7" RFC1213-MIB::sysServices.0 = INTEGER: 72 SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup SNMPv2-MIB::sysORID.6 = OID: TCP-MIB::tcpMIB SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB SNMPv2-MIB::sysORID.8 = OID: RFC1213-MIB::ip SNMPv2-MIB::sysORID.9 = OID: SNMP-NOTIFICATION-MIB::snmpNotifyFullCompliance SNMPv2-MIB::sysORID.10 = OID: NOTIFICATION-LOG-MIB::notificationLogMIB SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB. SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching. SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model. SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP. SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing TCP implementations SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations SNMPv2-MIB::sysORDescr.8 = STRING: The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.9 = STRING: The MIB modules for managing SNMP Notification, plus filtering. SNMPv2-MIB::sysORDescr.10 = STRING: The MIB module for logging SNMP Notifications. SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.10 = Timeticks: (0) 0:00:00.00 ####################################################################### # EndTime: Mon 18 Sep 2023 03:06:24 AM EDT ####################################################################### +++ Results stored in snmpwalk-172-19-11-15.txt

Using AES-192C for non-legacy snmpwalk

sn-11-9> snmpwalk Use legacy snmpwalk tool [n]: n Enter SNMP hostname or IP address []: 172.19.11.15 Enter Network View [mgmt]: Enter SNMP version (1, 2c, 3) []: 3 Enter SNMP Username []: md5aes192Cuserfortest SNMP Authentication [n]: y Enter SNMP Authentication Passphrase []: snmpv3md5AuthLongString Enter SNMP Authentication Protocol (MD5/SHA/SHA-224/SHA-256/SHA-384/SHA-512) []: MD5 SNMP Privacy [n]: y Enter SNMP Privacy Passphrase []: snmpv3aes192CPrivLongString Enter SNMP Privacy Protocol (DES/3DES/AES-128/AES-192/AES-256/AES-192C/AES-256C) []: AES-192C Enter Root OID to start walk [1.3.6.1.2.1.1]: +++ Executing snmpwalk ... ####################################################################### # Generated by NetMRI Administrator SNMP Walk # SerialNo : VM-0792-B838C # SNMP Host: 172.19.11.15 # SNMP Root: 1.3.6.1.2.1.1 # StartTime: Mon 18 Sep 2023 04:00:35 AM EDT ####################################################################### sysDescr.0 = DisplayString : SNMPv3 Host with DES/AES/AES(Cisco) privacy and MD5/SHA authorization sysObjectID.0 = ObjectIdentifier : 1.3.6.1.4.1.8072.3.2.10 (Net-SNMP Net-SNMP) sysUpTime.0 = TimeTicks : 931537619 sysContact.0 = DisplayString : NA-QA <na-qa@infoblox.com> sysName.0 = DisplayString : netmri-snmpv3.inca.infoblox.com sysLocation.0 = DisplayString : Core Site DC, vCenter6, ESXi6.7 sysServices.0 = Integer32 : 72 sysORLastChange.0 = TimeStamp : 0 sysORID.1 = ObjectIdentifier : 1.3.6.1.6.3.10.3.1.1 (snmpFrameworkMIBCompliance) sysORID.2 = ObjectIdentifier : 1.3.6.1.6.3.11.3.1.1 (snmpModules) sysORID.3 = ObjectIdentifier : 1.3.6.1.6.3.15.2.1.1 (snmpModules) sysORID.4 = ObjectIdentifier : 1.3.6.1.6.3.1 (snmpMIB) sysORID.5 = ObjectIdentifier : 1.3.6.1.6.3.16.2.2.1 (vacmBasicGroup) sysORID.6 = ObjectIdentifier : 1.3.6.1.2.1.49 (tcpMIB) sysORID.7 = ObjectIdentifier : 1.3.6.1.2.1.50 (udpMIB) sysORID.8 = ObjectIdentifier : 1.3.6.1.2.1.4 (ip) sysORID.9 = ObjectIdentifier : 1.3.6.1.6.3.13.3.1.3 (snmpModules) sysORID.10 = ObjectIdentifier : 1.3.6.1.2.1.92 (mib-2) sysORDescr.1 = DisplayString : The SNMP Management Architecture MIB. sysORDescr.2 = DisplayString : The MIB for Message Processing and Dispatching. sysORDescr.3 = DisplayString : The management information definitions for the SNMP User-based Security Model. sysORDescr.4 = DisplayString : The MIB module for SNMPv2 entities sysORDescr.5 = DisplayString : View-based Access Control Model for SNMP. sysORDescr.6 = DisplayString : The MIB module for managing TCP implementations sysORDescr.7 = DisplayString : The MIB module for managing UDP implementations sysORDescr.8 = DisplayString : The MIB module for managing IP and ICMP implementations sysORDescr.9 = DisplayString : The MIB modules for managing SNMP Notification, plus filtering. sysORDescr.10 = DisplayString : The MIB module for logging SNMP Notifications. sysORUpTime.1 = TimeStamp : 0 sysORUpTime.2 = TimeStamp : 0 sysORUpTime.3 = TimeStamp : 0 sysORUpTime.4 = TimeStamp : 0 sysORUpTime.5 = TimeStamp : 0 sysORUpTime.6 = TimeStamp : 0 sysORUpTime.7 = TimeStamp : 0 sysORUpTime.8 = TimeStamp : 0 sysORUpTime.9 = TimeStamp : 0 sysORUpTime.10 = TimeStamp : 0 ####################################################################### # EndTime: Mon 18 Sep 2023 04:00:35 AM EDT ####################################################################### +++ Results stored in snmpwalk-172-19-11-15.txt

Using AES-256-c for legacy snmpwalk

sn-11-9> snmpwalk Use legacy snmpwalk tool [n]: y Enter SNMP hostname or IP address []: 172.19.11.15 Enter Network View [mgmt]: Enter SNMP version (1, 2c, 3) []: 3 Enter SNMP Username []: md5aes256Cuserfortest SNMP Authentication [n]: y Enter SNMP Authentication Passphrase []: snmpv3md5AuthLongString Enter SNMP Authentication Protocol (MD5/SHA/SHA-224/SHA-256/SHA-384/SHA-512) []: MD5 SNMP Privacy [n]: y Enter SNMP Privacy Passphrase []: snmpv3aes256CPrivLongString Enter SNMP Privacy Protocol (DES/3DES/AES-128/AES-192/AES-256/AES-192-C/AES-256-C) []: AES-256-C Enter Root OID to start walk [1.3.6.1.2.1.1]: +++ Executing snmpwalk ... ####################################################################### # Generated by NetMRI Administrator SNMP Walk # SerialNo : VM-0792-B838C # SNMP Host: 172.19.11.15 # SNMP Root: 1.3.6.1.2.1.1 # StartTime: Mon 18 Sep 2023 04:39:15 AM EDT ####################################################################### RFC1213-MIB::sysDescr.0 = STRING: "SNMPv3 Host with DES/AES/AES(Cisco) privacy and MD5/SHA authorization" RFC1213-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (931769630) 107 days, 20:14:56.30 RFC1213-MIB::sysContact.0 = STRING: "NA-QA <na-qa@infoblox.com>" RFC1213-MIB::sysName.0 = STRING: "netmri-snmpv3.inca.infoblox.com" RFC1213-MIB::sysLocation.0 = STRING: "Core Site DC, vCenter6, ESXi6.7" RFC1213-MIB::sysServices.0 = INTEGER: 72 SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup SNMPv2-MIB::sysORID.6 = OID: TCP-MIB::tcpMIB SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB SNMPv2-MIB::sysORID.8 = OID: RFC1213-MIB::ip SNMPv2-MIB::sysORID.9 = OID: SNMP-NOTIFICATION-MIB::snmpNotifyFullCompliance SNMPv2-MIB::sysORID.10 = OID: NOTIFICATION-LOG-MIB::notificationLogMIB SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB. SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching. SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model. SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP. SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing TCP implementations SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations SNMPv2-MIB::sysORDescr.8 = STRING: The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.9 = STRING: The MIB modules for managing SNMP Notification, plus filtering. SNMPv2-MIB::sysORDescr.10 = STRING: The MIB module for logging SNMP Notifications. SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.10 = Timeticks: (0) 0:00:00.00 ####################################################################### # EndTime: Mon 18 Sep 2023 04:39:15 AM EDT ####################################################################### +++ Results stored in snmpwalk-172-19-11-15.txt

 

To access the file, connect to the NetMRI appliance using SCP. Additionally, you can read the file by running the cat [snmpwalk-172-19-4-192.txt] command from the admin shell.