Use it when securing SNMP, or when SNMPv3 polls fail authentication.
SNMPv3
SNMPv3 adds users with authentication (SHA) and encryption (AES); the authPriv security level gives both and is the recommended way to run SNMP.
1. SNMPv3 adds authentication and encryption (authPriv).
2. Use SHA and AES.
3. Users belong to groups with views.
4. Engine ID matters for users.
5. Disable v1/v2c where possible.
user (auth+priv) → group → view → access
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 Layered verification and original-test closure Verify boundary
SNMPv3 — Query one known OID with the intended authPriv/authNoPriv level, confirm a valid response and then query the application OID; document what the result shows versus agent/service reachability.
Step 2 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 3 Observation → implication → next check Narrow the fault
SNMPv3 — If a request times out, show UDP reachability and agent listening first; if authentication errors appear, compare engine/user/security level; if auth succeeds but OID access fails, inspect view/VACM and object support.
Step 4 Common mistakes Narrow the fault
- noAuthNoPriv users in production.
- Engine ID change breaking users.
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 user— users, auth and priv protocolsshow snmp group— security level
ReferenceHow it works1 section · depth on demand
Operational mechanics and ownership
SNMPv3 — SNMPv3 separates user-based security (authentication/privacy) from the SNMP request/response and view authorization. Engine ID, user keys and security level must line up with the target agent. The agent owns engine/time/user state and VACM/view authorization; network reachability only gets the request to UDP/161. Authentication success does not guarantee the requested OID is permitted.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
SNMPv3: users, security levels, authentication and encryption
The Catalyst 9300 SNMP guide lists three SNMPv3 security levels:
| Level | Meaning |
|---|---|
noAuthNoPriv | Username match only |
authNoPriv | Authentication with MD5 or SHA |
authPriv | Authentication plus DES, 3DES or AES encryption |
snmp-server group maps users to views and sets the security level. snmp-server user adds a user to a group with its authentication and privacy passwords. The guide notes that SNMPv3 users don't appear in show running-config; use show snmp user.
C9300(config)# ip access-list standard SNMP-MANAGERS
C9300(config-std-nacl)# permit 10.10.50.0 0.0.0.255
C9300(config)# snmp-server view NMS-VIEW iso included
C9300(config)# snmp-server group NMS-RO v3 priv read NMS-VIEW access SNMP-MANAGERS
C9300(config)# snmp-server user nms01 NMS-RO v3 auth sha <auth-pass> priv aes 256 <priv-pass>
C9300(config)# snmp-server host 10.10.50.20 version 3 priv nms01
C9300# show snmp user
User name: nms01
Engine ID: 800000090300EC1D8B0A7B80
storage-type: nonvolatile active
Authentication Protocol: SHA
Privacy Protocol: AES256
Group-name: NMS-RO
C9300# show snmp group
Choosing algorithms
| Item | Recommendation |
|---|---|
| Security level | priv (authPriv) |
| Authentication | SHA (or SHA-2 variants where the release and NMS support them); avoid MD5 |
| Privacy | AES 128 or 256; avoid DES |
| Access | ACL on the group |
Engine ID pitfalls
SNMPv3 keys are localised to the device's engine ID. If the engine ID changes (for example snmp-server engineID local configured differently, or a replacement device), existing users must be re-created, and the NMS may need to re-discover the device.
Troubleshooting
| Symptom on the NMS | Cause |
|---|---|
Unknown user name | User missing or wrong group or engine ID |
Authentication failure | Wrong auth password or algorithm |
Decryption error / timeout | Privacy algorithm or password mismatch |
| Timeout only from one NMS | Group ACL or firewall |
Documented example, not captured output.
Quick reference
SNMPv3 replaces community strings with named users, adds message authentication so data cannot be forged, and encrypts the payload so it cannot be read. The security level is chosen per group; authPriv (authentication plus encryption) should be the standard. Users are defined separately from the running configuration on Cisco devices, so they must be documented and recreated deliberately after device replacement.
SNMPv3 adds users with authentication and encryption:
| Level | Auth | Encryption |
|---|---|---|
| noAuthNoPriv | No | No |
| authNoPriv | Yes (SHA) | No |
| authPriv | Yes | Yes (AES) — use this |
snmp-server view NMS-VIEW iso included
snmp-server group NMS v3 priv read NMS-VIEW access SNMP-ACL
snmp-server user nms NMS v3 auth sha <authpass> priv aes 256 <privpass>
show snmp user
snmpwalk -v3 -l authPriv -u nms -a SHA -A <authpass> -x AES -X <privpass> 10.0.0.1 system
SNMPv3 users are not shown in show running-config (stored separately) — document them.
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 → SNMPv3. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%