Use it for inventory, counters, state monitoring and event notification with a defined MIB/OID and security model.
SNMP
SNMP exposes managed objects through an agent for polling and can send asynchronous notifications to managers.
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.
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
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.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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
snmp-server community <community> roPrimary Commands
Configuration and operational commands for this Topic.
snmp-server community <community> roReferenceCreate a read-only SNMPv2c community; restrict it with an ACL.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server community <community> rwReferenceCreate a read-write SNMPv2c community; avoid it in production.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server location <text>ReferenceSet the SNMP location string.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server contact <text>ReferenceSet the SNMP contact string.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server host <ip> version 2c <community>ReferenceSend SNMPv2c traps to a host.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server enable trapsReferenceEnable sending of SNMP traps.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server group <group> v3 privReferenceCreate an SNMPv3 group that requires authentication and encryption.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedsnmp-server user <user> <group> v3 auth ... priv ...ReferenceCreate an SNMPv3 user with authentication and privacy settings.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show snmp communityShowDisplay SNMP communities.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedshow snmp userShowDisplay SNMPv3 users.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedshow snmpShowDisplay SNMP counters and status.
Use when: Use this command at the SNMP boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. A successful poll does not prove traps arrive; a configured trap host does not prove notification delivery.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
Subtopics
Go one level deeper into this subject.
An SNMP manager (NMS) polls agents for values, receives traps and informs, and stores or graphs the data; it must use credentials the agent accepts.
Subtopic SNMP AgentAn SNMP agent runs on the managed device, answers get/set requests for its MIB objects and sends traps or informs to managers.
Subtopic MIBA Management Information Base (MIB) is a structured, module-based definition of the objects an SNMP agent exposes, such as interface counters in IF-MIB.
Subtopic OIDAn Object Identifier (OID) is the dotted numeric path to one MIB object, for example 1.3.6.1.2.1.2.2.1.10 for ifInOctets; managers request values by OID.
Subtopic PollingSNMP polling means the manager periodically requests values (get, getbulk, walk) from agents over UDP 161; the polling interval limits how quickly changes are seen.
Subtopic TrapAn SNMP trap is an unsolicited message from agent to manager on UDP 162 when an event occurs, such as a link going down; traps are not acknowledged, informs are.
Subtopic SNMPv2cSNMPv2c adds getbulk and informs but still authenticates with a plaintext community string; restrict it with ACLs or use SNMPv3 instead.
Subtopic SNMPv3SNMPv3 adds users with authentication (SHA) and encryption (AES); the authPriv security level gives both and is the recommended way to run SNMP.
- 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.
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.
| Version | Security | Notes |
|---|---|---|
| SNMPv1 | Community string | No informs |
| SNMPv2c | Community string | Adds get-bulk and better error codes |
| SNMPv3 | Username 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
| Point | Detail |
|---|---|
| Ports | UDP 161 (polling) and 162 (notifications); open while any community, user, host or manager is configured |
| Traps versus informs | Traps are sent once without acknowledgement; informs are acknowledged and retried, using more resources |
| Engine ID | Configure before SNMPv3 users; changing it invalidates user digests |
| SNMPv3 credentials | Not shown in show running-config; use show snmp user |
| Backslash | Not 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
| Symptom | Check |
|---|---|
| No response to polls | show snmp error counters, ACL, show udp for port 161 |
| v3 authentication failures after a stack change | The guide lists stack priority changes as a known case |
| Traps not arriving | snmp-server host version and user, route to the NMS, firewall on UDP 162 |
Documented example, not captured output.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
SNMP evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show snmp | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | manager request → transport/ACL → SNMP security model → MIB/OID lookup → response; event → notification receiver | application success |
SNMP · operational reference
Compact state and interpretation boundaries for fast lookup.
| SNMP mechanism | Purpose | Important caveat |
|---|---|---|
| GET/GETBULK | Poll current objects | Value meaning comes from MIB/object context |
| Counter | Accumulated events/bytes | Usually interpret as delta/rate |
| Trap | Asynchronous notification | No acknowledgment |
| Inform | Notification with acknowledgment | Delivery still depends on manager handling |