Use it when a device does not answer SNMP polls or sends no traps.
SNMP Agent
An SNMP agent runs on the managed device, answers get/set requests for its MIB objects and sends traps or informs to managers.
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.
manager poll → agent → MIB data → response
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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.
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 · 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.
- 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— agent statisticsshow snmp community / show snmp user— access configshow 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 useshow snmp userto audit. - Cloned virtual devices can end up with the same engine ID; managers then confuse them.
Agent-side checks in order
| Step | Command | Looks for |
|---|---|---|
| Groups and views | show snmp group | Group uses the intended read view and security level (priv) |
| Views | show snmp view | OIDs included/excluded |
| Packet counters | show snmp | Unknown user names, Wrong digest values, Decryption errors incrementing |
| Interface index stability | snmp-server ifindex persist | ifIndex 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.
SNMP versions
| Version | Security |
|---|---|
| v1/v2c | Community string in clear text |
| v3 noAuthNoPriv | Username only |
| v3 authNoPriv | Authentication (SHA) |
| v3 authPriv | Authentication + 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
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 → Agent. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%