Skip to main content
Version: v25.07.31

SNMP Troubleshooting for PE Devices

This guide provides a comprehensive, step-by-step approach to troubleshooting SNMP configuration issues on PE (Provider Edge) devices. It covers verifying cloud and local configurations, checking service status, and running SNMP walk tests to help you quickly identify and resolve most connectivity or configuration problems.


Troubleshooting Steps

Cloud Configuration Verification

These commands help verify the SNMP configuration as seen by the cloud service.

Access the PE Terminal

Log into the PE device and gain root access:

sudo su -

Check Last Configuration Response

Run the following command to check the last configuration response from the cloud. This command displays the SNMP configuration settings that were last received.

cat /tmp/last_config_response.json | jq .'service.snmp'

Example Response:

{
"hostName": "myhost.com",
"location": "Nadiad",
"version": "v3",
"community": null,
"port": 161,
"description": "system",
"contact": "apex_connected.ltd1@gmail.com",
"enable": true,
"username": "sharad",
"authProtocol": "SHA",
"authPassword": "sharad24",
"privacyPassword": null,
"privacyProtocol": null,
"securityLevel": "auth"
}

Verify SNMP Daemon Configuration File

Use cat /etc/config/snmpd to view the SNMP service configuration file. This is crucial for confirming that SNMP is configured correctly on the device itself.

cat /etc/config/snmpd

Example Response:

config agent
option agentaddress 'UDP:161'

config agentx
option agentxsocket '/var/run/agentx.sock'

config com2sec 'public'
option secname 'ro'
option source 'default'

config com2sec6 'public6'
option secname 'ro'
option source 'default'
option community 'public'

config com2sec6 'private6'
option secname 'rw'
option source 'localhost'
option community 'private'

config group 'public_v1'
option group 'public'
option version 'v1'
option secname 'ro'

config group 'public_v2c'
option group 'public'
option version 'v2c'
option secname 'ro'

config view 'all'
option viewname 'all'
option type 'included'
option oid '.1'

config access 'public_access'
option group 'public'
option context 'none'
option version 'any'
option level 'noauth'
option prefix 'exact'
option read 'all'
option write 'none'
option notify 'none'

config system
option sysLocation 'Nadiad'
option sysContact 'apex_connected.ltd1@gmail.com'
option sysName 'myhost.com'
option sysDescr 'system'

config exec
option name 'filedescriptors'
option prog '/bin/cat'
option args '/proc/sys/fs/file-nr'

config engineid
option engineidtype '3'
option engineidnic 'eth0'

config snmpd 'general'
option enabled '1'

config user 'sharad'
option name 'sharad'
option sec_level 'auth'
option auth_proto 'SHA'
option auth_pass 'sharad24'
option user_type 'rouser'
Q:1 How to check how SNMP access levels are configured?

Q:2 How to know if SNMP service is enabled or not?