Skip to main content
Version: Next

SNMP & Discovery

Please refer to SNMP Management section of Platform Admin Guide for details on configuring SNMP polling.

Please check whether you can see syslogs with nfc_id=20103 (SNMP Custom OID Sets Monitor) in the system that receives NFO output. If you do not see these records, please ensure that there is no firewall between NFO and your network devices that could potentially block SNMP traffic.

Device Status in Auto-discovery​

The status of each discovered device is shown on the Preview devices tab of the SNMP auto-discovery agent and in the status field of the Auto-discovery Reporter (10701) device records. Discovery runs on the host of the SNMP auto-discovery EDFN agent, so for discovery problems, run the tests on this page from that host.

StatusWhat to check
DownThe device answered in an earlier run but no longer answers. Check that it is running and reachable, that no firewall blocks UDP port 161 (or the port configured for its range), and that its SNMP agent is enabled. With SNMPv1 and SNMPv2c, a wrong community string also shows as Down: check the community string in the credentials assigned to the device's range
Auth failureThe device rejected the SNMPv3 credentials. Check that the security name, security level, authentication and privacy protocols, and passwords match the device configuration
UnresponsiveThe device answered with an SNMP error or returned no data. Check that the device's SNMP view or access list allows reading the standard system information (sysDescr, sysObjectID, sysName)
UnknownThe device was seen only as an LLDP or CDP neighbor and has not been polled. To poll it, add its address to the Auto-discovery networks tab

A Down device continues to be polled and returns to Up at the next discovery run after it answers. It is removed from the inventory once it has not answered for the period set by Keep down devices, days. See Devices That Stop Responding.

Using snmpwalk​

You can use snmpwalk from the NFO machine to test connectivity and confirm that your network devices respond to SNMP polling.

If you don't have net-snmp on NFO machine, please perform the following:

Install net-snmp

yum -y install net-snmp net-snmp-utils

Run snmpwalk to test

Example for SNMP v2c:

snmpwalk -v 2c -c public 10.0.0.1

Where public is a community string and 10.0.0.1 is your network device management IP.

This command will perform SNMP polling of all OIDs available at device 10.0.0.1

Example for SNMP v2c polling starting with a specific branch of SNMP tree:

snmpwalk -v 2c -c public 10.0.0.1 1.3.6.1.2.1.25.3.3.1

Where 1.3.6.1.2.1.25.3.3.1 is the OID you specify to return all results in the MIB subtree rooted at that OID.

Example for SNMP v3:

snmpwalk -v3 -l authPriv -u snmp-user -a SHA -A "AuthPass" -x AES -X "PrivPass" 10.10.60.50
note

For more information on snmpwalk command parameters, visit: https://linux.die.net/man/1/snmpwalk

Using snmpbulkget​

NFO utilizes the SNMP BULK feature to enhance performance. The following command simulates the SNMP traffic that NFO would generate for the interface_mon OID set, which is used to monitor interface statistics:

snmpbulkget -v2c -c public -Cr10 10.0.0.1 1.3.6.1.2.1.2.2.1.7 1.3.6.1.2.1.31.1.1.1.18 1.3.6.1.2.1.2.2.1.2 1.3.6.1.2.1.31.1.1.1.6 1.3.6.1.2.1.31.1.1.1.10 1.3.6.1.2.1.31.1.1.1.15 1.3.6.1.2.1.2.2.1.13 1.3.6.1.2.1.2.2.1.14 1.3.6.1.2.1.2.2.1.12 1.3.6.1.2.1.2.2.1.11 1.3.6.1.2.1.2.2.1.1 1.3.6.1.2.1.2.2.1.4 1.3.6.1.2.1.31.1.1.1.1 1.3.6.1.2.1.2.2.1.8 1.3.6.1.2.1.2.2.1.19 1.3.6.1.2.1.2.2.1.20 1.3.6.1.2.1.2.2.1.18 1.3.6.1.2.1.2.2.1.17 1.3.6.1.2.1.2.2.1.6 1.3.6.1.2.1.2.2.1.5 1.3.6.1.2.1.2.2.1.3

Where:

  • public is the community string.
  • Cr10 specifies the maximum number of repetitions for the GetBulk request. This allows to efficiently retrieve an SNMP table with many entries. Instead of asking for each row individually, you use GetBulk to request a set of rows at once.
  • 10.0.0.1 is the IP address of your network device.
note

For more information on snmpbulkget command parameters, visit: https://linux.die.net/man/1/snmpbulkget

Capturing Packets (PCAP)​

To analyze SNMP polling requests and replies, you might need to capture traffic packets using the tcpdump command.

If you need to send a PCAP file to NetFlow Logic Support for analysis, please follow these steps:

  1. Set the v3 password on the device to '12345678' before capturing SNMP polling.
  2. Create new Credentials in NFO with the password set to '12345678' for the device you intend to capture traffic from.
  3. Run the following command on the NFO machine (replace x.x.x.x with the device's IP address):
sudo tcpdump -i any host x.x.x.x and port 161 -s 0 -w nfo_snmp_traffic.pcap
  1. Allow the packet capture to run for at least 5 minutes before stopping it.
  2. After capturing, remember to change the v3 password back to the original password on both the device and in the NFO SNMP polling configuration.