How to check the SNMP reachability of network devices
Site24x7's On-Premise Poller uses SNMP to monitor and collect performance metrics from monitored devices.
You can check if a network device or a server is reachable through SNMP from the On-Premise Poller using:
- Site24x7's MIB browser
- The MIB browser in the machine where the On-Premise Poller is installed
- Command-line tools
Testing using Site24x7's MIB browser
Please follow the steps below to check if a network device or a server is reachable through SNMP, from the On-Premise Poller using the bundled MIB browser:
- Open the Command Prompt as an administrator. From here, go to the directory where the On-Premise Poller is installed. If the Command Prompt isn't opened as an administrator, an Access is denied error message is displayed.
- Navigate to the ../Site24x7OnPremisePoller/Networkplus/bin folder.
- Execute the MibBrowser.sh or MibBrowser.bat file
- Set the SNMP credentials with respect to the version.
- For SNMP v1, set the host, port, and the SNMP community.
- For SNMP v2, click Edit > Settings > Change the SNMP version > OK. Set the host, port, and the SNMP community.
- For SNMP v3, click Edit > Settings > Change the SNMP version > Add. Set the host, port, username, authentication credentials and click OK.
Figure 4. Testing an OID in the MIB browser in machine where the On-Premise Poller is installed.
Then, navigate the RFC1213-MIB to org.dod.internet.mgmt.mib-2.system.sysObjectID (or) set the value for Object ID field to .1.3.6.1.2.1.1.2.
Click the Get SNMP variable icon (the seventh icon from the left) below the menu bar.
Check if the device details were fetched successfully.
Figure 5. Checking if the value was fetched correctly.
If a timeout occurs, please check if
i) The hostname, port, and SNMP community are specified correctly.
ii) There is a firewall blocking the SNMP connection.
iii) The On-Premise Poller is on the same network as the device.
There is also a chance that the On-Premise Poller will not be on the list of hosts that are allowed to query the device through SNMP. Check the SNMP configuration on the device to ensure it's configured correctly.
If the MIB browser is inaccessible or fails to work, SNMP command-line tools can be used to check the SNMP reachability.
- Install the required packages:
Fedora/Centos: yum install net-snmp-utils
Ubuntu: apt-get install snmp - Execute the appropriate commands:
SNMP v1/v2c:
> snmpwalk -v [1/2c] -c <Read_Community> <IP_Address>
Example: snmpwalk -v 1 -c public 10.10.10.1
SNMP v3:
> snmpwalk -v3 -l (noAuthNoPriv | authNoPriv | authPriv) -u (username) [-a (MD5 | SHA)] [-A (authphrase)] [-x DES] [-X (privaphrase)] (ipaddress)[:(dest_port)]
Example: snmpwalk -v3 -u testuser -A ‘password@123’ -l authNoPriv -a MD5 10.10.10.1:161
If the SNMP port is not default 161, specify the correct port in the above command as IP_Address:Port.
Example: 10.10.10.1:601
Related Articles
How to query OIDs in the MIB browser
The managed objects in a management information base (MIB) are called object identifiers (object IDs or OIDs). OIDs are identifiable by strings of numbers separated by dots. Learn how to open the MIB browser and configure SNMP settings. You can query ...
Troubleshooting data collection issues while using SNMP v3 credentials
When data collection stops, check: If data collection has stopped for only a particular device or for all devices. If any out of memory (OOM) files are present in the following folder: {poller directory}/NetworkPlus/bin folder The credential ...
How to find the Device Identifier (sysOID) using MIB browser?
The managed objects in an MIB are called object identifiers (object IDs or OIDs). OIDs are identifiable by strings of numbers separated by dots. Open an MIB browser and configure SNMP settings. You can find the sysOID using the MIB browser. Open the ...
Troubleshooting MIB file upload issues
Purpose of the MIB browser in Site24x7 A management information base (MIB) browser helps you view the parsed MIB tree of the MIB file. From the MIB tree, you can select any node (or OID) and add it as a performance counter or an SNMP trap on ...
How to share the SNMP v3 request logs to analyze credential issues
The Site24x7 support team is available to assist you with solving SNMP v3 request credential issues. To troubleshoot the issue, we need you to capture SNMP v3 request logs data and send it to us. This article describes the process to capture this ...