Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

SNMP

Direct answer

SNMP exposes managed objects through an agent for polling and can send asynchronous notifications to managers.

When to use this

Use it for inventory, counters, state monitoring and event notification with a defined MIB/OID and security model.

First 30 seconds

1. show snmp — input packets increasing when the manager polls?

2. Errors: bad community / unknown user / auth failure → credentials mismatch.

3. ACL on the community or group dropping the manager?

4. Test from the manager with snmpwalk on sysDescr.

5. Traps: show snmp host — receiver and version configured; manager receives a test trap.

Operational verification

manager polls UDP 161 → ACL permits → community or v3 user authenticates → view allows the OID → agent answers → traps/informs to UDP 162 at the manager

Failure signatureMonitoring system shows the device as unreachable via SNMP

Ping works but SNMP polls time out or return authorisation errors; graphs have gaps.

Possible stored cause: Community or SNMPv3 user/auth/priv settings differ, the SNMP ACL blocks the poller, or a firewall blocks UDP 161.
Evidence · next step

1. Verify manager-to-agent routing and UDP 161.
2. Verify version, credentials/user, view and ACL.
3. Poll one known OID.
4. Verify notification destination and UDP 162.
5. Correlate device and manager logs.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandsnmp-server community <community> ro
Scope / prerequisiteUse it for inventory, counters, state monitoring and event notification with a defined MIB/OID and security model.
Show · 3Reference · 8
What next?3 suggested next steps
Child topics (this level)8
Catalog command links11
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Ping works but SNMP polls time out or return authorisation errors; graphs have gaps.

Step 1 First 30 seconds Verify boundary

Immediate answer: Verify version/security model, ACL/view, one known OID poll and notification path separately.

Verification chain: Manager request → transport/ACL → SNMP security model → OID lookup → response; event → notification

Stop condition: A successful poll does not show traps/informs are delivered.

Step 2 Verification and output interpretation Verify boundary

Verify both access and semantic correctness. A successful query shows the manager can authenticate/authorize to the agent and retrieve that OID, but you should also confirm the returned object represents the intended interface/process and that its units/counter semantics are understood. For interface traffic, collect two counter samples over a known interval and derive a rate rather than treating the absolute counter as utilization. For notifications, trigger or observe a controlled event and confirm receipt at the intended manager, including source identity and timestamp. SNMPv3 verification should distinguish authentication failure, privacy/decryption failure and authorization/view restrictions.

Step 3 Verification & troubleshooting Narrow the fault

1. Verify manager-to-agent routing and UDP 161.

2. Verify version, credentials/user, view and ACL.

3. Poll one known OID.

4. Verify notification destination and UDP 162.

5. Correlate device and manager logs.

Step 4 Branching troubleshooting Narrow the fault

Path: Networking → IP Services → SNMP. Local intent: SNMP: Manager, Agent, MIB, OID.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • Polling and traps/informs are independent paths
  • An OID identifies an object; the MIB describes structure and semantics
  • SNMPv2c community strings are not equivalent to SNMPv3 authentication/privacy
  • Restrict management sources and grant the minimum required view/access.
Key checks
  • show snmp — packets in/out and errors (bad community, unknown user, ACL drops).
  • show snmp user / show snmp group — SNMPv3 users and security levels.
  • show snmp host — trap and inform receivers.
  • show running-config | include snmp-server — communities, views, ACLs.
  • From the manager: snmpwalk -v3 -l authPriv -u <user> -a SHA -A <pw> -x AES -X <pw> <device> 1.3.6.1.2.1.1 — test a read.
ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

SNMP: managers poll agents and agents send notifications

The Catalyst 9300 SNMP guide describes the model: the manager runs on a network management system, and the agent and MIB live on the device. Managers use get, get-next, get-bulk (SNMPv2 and later) and set; the agent replies with get-response and sends traps unsolicited. The agent is disabled until the first snmp-server command.

VersionSecurityNotes
SNMPv1Community stringNo informs
SNMPv2cCommunity stringAdds get-bulk and better error codes
SNMPv3Username plus optional authentication (MD5/SHA) and encryption (DES/3DES/AES)Levels noAuthNoPriv, authNoPriv, authPriv
C9300(config)# ip access-list standard SNMP-NMS
C9300(config-std-nacl)# permit 10.10.50.30
C9300(config)# snmp-server group NMS-RO v3 priv access SNMP-NMS
C9300(config)# snmp-server user nms-poller NMS-RO v3 auth sha <auth-key> priv aes 128 <priv-key>
C9300(config)# snmp-server host 10.10.50.30 version 3 priv nms-poller
C9300(config)# snmp-server enable traps snmp linkdown linkup coldstart
C9300(config)# snmp-server location DC1 row 3 rack 12
C9300(config)# snmp-server contact noc@example.com
C9300# show snmp user
User name: nms-poller
Engine ID: 800000090300A4BB6D112200
storage-type: nonvolatile        active
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: NMS-RO

Documented points

PointDetail
PortsUDP 161 (polling) and 162 (notifications); open while any community, user, host or manager is configured
Traps versus informsTraps are sent once without acknowledgement; informs are acknowledged and retried, using more resources
Engine IDConfigure before SNMPv3 users; changing it invalidates user digests
SNMPv3 credentialsNot shown in show running-config; use show snmp user
BackslashNot allowed in SNMPv3 credentials

Recommendations

  • Use SNMPv3 with authPriv. Community strings in v1/v2c are sent in clear text.
  • Restrict access with an ACL on the group or community.
  • Prefer read-only access. Configuration through SNMP set is rarely needed.

Troubleshooting

SymptomCheck
No response to pollsshow snmp error counters, ACL, show udp for port 161
v3 authentication failures after a stack changeThe guide lists stack priority changes as a known case
Traps not arrivingsnmp-server host version and user, route to the NMS, firewall on UDP 162

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

An SNMP manager queries an agent for objects identified by hierarchical OIDs. MIB modules provide names, types and semantic descriptions for those objects, while the actual value is supplied by the device. GET/GETNEXT/GETBULK support polling and table walking; SET can change writable objects and therefore has a very different safety profile. Traps are unacknowledged notifications, whereas informs add acknowledgment semantics. Counters may be monotonically increasing values that need rate/delta calculation rather than direct thresholding. Interface identities, indexes and counter widths can matter when correlating data across reloads or platforms. SNMP is a transport for management data, not a guarantee that every useful device state is represented by one universal OID.

Limits and common misconceptions

A successful SNMP poll does not show the monitored service is healthy; it shows the requested management object was accessible and returned a value. A trap not received can reflect agent configuration, network delivery or manager processing and does not by itself show the event never happened. Interface indexes can change across some lifecycle events, so blindly binding long-term meaning to one numeric index is risky. SNMPv3 secures the management exchange according to its configured security level; it does not make inaccurate/stale instrumentation correct. Keep transport/authentication, object identity, value semantics and operational interpretation distinct.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Prefer SNMPv3 where supported and required, using explicit users, authentication/privacy policy and views that expose only needed MIB objects. Restrict manager source addresses and avoid broad read-write access. If SNMPv2c is retained for compatibility, treat community strings as credentials and scope them accordingly. Define trap/inform destinations intentionally and understand which notification categories are enabled. Monitoring systems should map interface/object identity robustly and account for counter discontinuities after reloads. Poll intervals should balance observability with device/management-plane load; high-frequency polling of expensive tables can create its own operational impact.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3411

Authoritative/upstream documentation reviewed for bounded claims in IP Services → SNMP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
simple network management protocolSNMPv3MIB OID trap
Embedded reference data

Quick lookup tables

SNMP evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show snmpremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?manager request → transport/ACL → SNMP security model → MIB/OID lookup → response; event → notification receiverapplication success

SNMP · operational reference

Compact state and interpretation boundaries for fast lookup.

SNMP mechanismPurposeImportant caveat
GET/GETBULKPoll current objectsValue meaning comes from MIB/object context
CounterAccumulated events/bytesUsually interpret as delta/rate
TrapAsynchronous notificationNo acknowledgment
InformNotification with acknowledgmentDelivery still depends on manager handling
Confirmation

Confirm action

Continue?