SNMP Troubleshooting Guide

SNMP Troubleshooting Guide

1. Verify SNMP Agent Status

Before troubleshooting connectivity, ensure the SNMP agent is running on the target server.

Linux

ps -ef | grep snmpd

or

systemctl status snmpd

Windows

  • Open services.msc

  • Check SNMP Service

  • Ensure service is Running

  • Startup type should be Automatic

If SNMP service is not running, start it and retry.

2. Execute SNMP Walk (v1 / v2 Only)

If SNMP service is running, execute the troubleshooting script:

  • snmpwalk.bat (Windows)

  • snmpwalk.sh (Linux)

Navigate to:

AppManager/bin/troubleshooting

Usage

snmpwalk.bat  [version]  [community]  [port]  [hostname/IP]  [timeout]  [Manufacturer]

Defaults:

  • Version: v1

  • Community: public

  • Port: 161

  • Timeout: 5 seconds

What It Validates

  • SNMP connectivity

  • Discovery capability

  • Attribute data retrieval

If attributes show null, data is unavailable from SNMP agent.
If timeout occurs, check network/firewall/permissions.

Notes
Note: This script supports only SNMP v1 and v2. For v3, validate credentials and MIB access manually.

3. SNMP Configuration – Linux

SNMP configuration file location (varies by OS):

OSFile Location
Ubuntu / Debian/etc/snmp/snmpd.conf
RHEL / CentOS / Fedora/etc/snmp/snmpd.conf
FreeBSD/usr/local/etc/snmpd.conf
Solaris/etc/net-snmp/snmp/snmpd.conf

Step 1: Take Backup

sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak

Step 2: Ensure SNMP Agent Listens on All Interfaces

Comment this line:

#agentaddress 127.0.0.1,[::1]

Add:

agentAddress udp:161,udp6:[::1]:161

Step 3: Configure Community (SNMP v1/v2)

Grant full access:

rocommunity <community_string>

Restrict to specific IP:

rocommunity <community_string> <IP>

Example:

rocommunity public default
rwcommunity private 10.10.10.0/24

Step 4: Configure SNMP v3

Grant access:

rouser <snmpv3_user>

For subtree access:

view sysView included .1.3.6.1.2.1
rouser user1 authpriv -V sysView

Step 5: Restart SNMP Service

systemctl restart snmpd

Required MIB Access

Ensure access to:

  • HOST-RESOURCES-MIB (.1.3.6.1.2.1)

  • UCD-SNMP-MIB (.1.3.6.1.4.1.2021)

4. SNMP Configuration – Windows

A. Enable SNMP Feature

For Windows Server 2016 / 2019 / 2022 / Windows 10+

  1. Open Control Panel

  2. Go to Programs → Turn Windows features on or off

  3. Enable Simple Network Management Protocol (SNMP)

  4. Click OK

B. Configure SNMP Service

  1. Open Services (services.msc)

  2. Right-click SNMP Service → Properties

  3. Go to Security tab

Add Community String

  1. Click Add

  2. Enter community name (case-sensitive)

  3. Select permission level (Read Only recommended)

  4. Click Add

Configure Accepted Hosts

Choose one:

  • Accept SNMP packets from any host

  • Accept SNMP packets only from specified hosts (Recommended)

If restricting, add the Applications Manager server IP.

Set Startup Type

  • Startup type: Automatic

  • Click Apply → OK

5. SNMP Timeout / Connectivity Checklist

If you get "Request Timed Out":

  1. Ping target device from Applications Manager server

  2. Ensure UDP port 161 is open

  3. Verify firewall rules

  4. Confirm correct SNMP version and credentials

  5. Increase timeout value in monitor settings

6. When to Contact Support

If issue persists, share:

This helps us analyze and provide RCA quickly.