Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

SNMP Agent

Direct answer

An SNMP agent runs on the managed device, answers get/set requests for its MIB objects and sends traps or informs to managers.

When to use this

Use it when a device does not answer SNMP polls or sends no traps.

First 30 seconds

1. The SNMP agent on the device answers polls and sends traps.

2. Restrict access with ACLs.

3. Prefer SNMPv3.

4. Set contact and location.

5. Check counters for errors.

Operational verification

manager poll → agent → MIB data → response

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
Scope / prerequisiteUse it when a device does not answer SNMP polls or sends no traps.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

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

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 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 2 Common mistakes Narrow the fault
  • Default community public/private.
  • No ACL limiting which managers may poll.
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.

observation · 1
Command lookup Jump straight to Cisco syntax
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 — agent statistics
  • show snmp community / show snmp user — access config
  • show snmp host — trap receivers
ReferenceWhat it is1 section · depth on demand

Agent configuration (SNMPv3)

snmp-server group NMS v3 priv read NMS-VIEW access SNMP-ACL
snmp-server view NMS-VIEW iso included
snmp-server user nms NMS v3 auth sha <authpass> priv aes 128 <privpass>
snmp-server host 10.99.0.20 version 3 priv nms
snmp-server enable traps

Documented example, not captured output. Restrict with an ACL and test from the manager with snmpwalk -v3 -l authPriv -u nms -a SHA -A ... -x AES -X ... <device> sysDescr.

ReferenceWhy it matters1 section · depth on demand

How it works

The SNMP agent runs on the device, answers GET/GETNEXT/GETBULK/SET requests on UDP 161 from allowed managers, and sends traps or informs to UDP 162. What it exposes is limited by views (v3) or the community's access (v2c).

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

The engine ID ties SNMPv3 users to the agent

RFC 3411 gives every SNMP engine a unique snmpEngineID. In SNMPv3 the user's authentication and privacy keys are localised to that ID — the stored key is derived from the passphrase and the engine ID.

R1# show snmp engineID
Local SNMP engineID: 800000090300A3D1C0FF01
R1# show snmp user
User name: NMS-POLLER
Engine ID: 800000090300A3D1C0FF01
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: NMS

Consequences:

  • Changing the engine ID (snmp-server engineID local ...) invalidates every existing v3 user; they must be recreated.
  • SNMPv3 users are not shown in show running-config — back them up by documenting how they were created, and use show snmp user to audit.
  • Cloned virtual devices can end up with the same engine ID; managers then confuse them.

Agent-side checks in order

StepCommandLooks for
Groups and viewsshow snmp groupGroup uses the intended read view and security level (priv)
Viewsshow snmp viewOIDs included/excluded
Packet countersshow snmpUnknown user names, Wrong digest values, Decryption errors incrementing
Interface index stabilitysnmp-server ifindex persistifIndex values survive reloads, so graphs stay attached to the right port

Hardening the agent

  • Use priv (authentication + encryption) and an ACL on the group.
  • Remove v1/v2c communities when v3 is in place; if v2c must stay, use read-only, an ACL and a long random community.
  • Limit write access entirely unless an automation tool truly needs SET.

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.

SNMP versions

VersionSecurity
v1/v2cCommunity string in clear text
v3 noAuthNoPrivUsername only
v3 authNoPrivAuthentication (SHA)
v3 authPrivAuthentication + encryption (AES)

Use v3 authPriv; agents listen on UDP 161, traps go to UDP 162.

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 → Agent. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%
Confirmation

Confirm action

Continue?