Updated October 2026: I re-tested SNMPv3 authPriv in my home lab on IOL 17.18.2, including the engine-ID break after user creation, and captured real SHA/AES traps on the wire. Details are in the new section after Verification.
SNMPv1 and v2c send everything - including your community string, which is effectively a password - in cleartext across the network. Anyone with a packet capture has your read (or write) access. SNMPv3 fixes this with real authentication and encryption, but it does so through a configuration model of users, groups, and views that is genuinely more involved than "snmp-server community public RO". The extra effort is the price of not broadcasting your monitoring credentials.
This article builds SNMPv3 in production form and - the payoff - shows a real encrypted trap arriving and being decrypted on a Linux receiver. For the fundamentals, see the IP services pillar.
The three security levels
SNMPv3 offers three levels, and you should use the strongest:
The configuration model: view, group, user
SNMPv3 is built bottom-up from three objects, and understanding the layering is understanding the config:
- A view defines what OIDs can be accessed - a subtree of the MIB tree, included or excluded.
- A group ties a security level to a view - "users at this level can read this view".
- A user belongs to a group and carries the actual credentials (auth password, priv password).
! 1. The view - what OIDs are visible
snmp-server view PLVIEW iso included
snmp-server view PLVIEW internet included
! 2. The group - security level + view
snmp-server group PLGRP v3 priv read PLVIEW
! 3. The user - credentials, member of the group
snmp-server user pladmin PLGRP v3 auth sha <LAB_AUTH> priv aes 128 <LAB_PRIV>Read that user line carefully - it is the crux. auth sha <LAB_AUTH> sets the authentication (SHA, with its password); priv aes 128 <LAB_PRIV> sets the encryption (AES-128, with its password). Two separate secrets, two separate purposes. Use SHA for auth (not MD5, which is deprecated) and AES for privacy (not DES, which is broken).
Verification, on the router
R1#show snmp user
User name: pladmin
Engine ID: 800000090300000000005101
storage-type: nonvolatile active
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: PLGRP
R1#show snmp engineID
Local SNMP engineID: 800000090300000000005101
Remote Engine ID IP-addr Port
R1#show snmp group
groupname: PLGRP security model:v3 priv
contextname: <no context specified> storage-type: nonvolatile
readview : PLVIEW writeview: <no writeview specified>
notifyview: <no notifyview specified>
row status: active
R1#show snmp view | include PLVIEW
PLVIEW iso - included nonvolatile active
PLVIEW internet - included nonvolatile activeNote the Engine ID in show snmp user - 800000090300000000005101 in my lab. It matters when you configure a trap receiver, because for traps the router is the authoritative engine. If you ever change the local engine ID, compare show snmp user with show snmp engineID: on IOL 17.18.2 the old user row stayed visible even after it stopped working, as the break below shows.
Break it: change the local engine ID
Set the local engine ID before creating SNMPv3 users. Changing it afterward can break users whose keys were localized to the old engine ID. I rebuilt this on Cisco IOL 17.18.2 in my home lab and proved the break with a walk.

Baseline user under engine ID 800000090300000000005101 (SHA / AES128):
Engine ID: 800000090300000000005101
Authentication Protocol: SHA
Privacy Protocol: AES128
Group-name: PLGRPAfter snmp-server engineID local 800000090300000000005102, show snmp user still showed the old-engine row, but show snmp engineID had moved and the walk failed:
Engine ID: 800000090300000000005101
Local SNMP engineID: 800000090300000000005102snmpwalk: Unknown user name
[net-snmp exit 1]Recreating the same user with the same lab-only secrets under the new engine restored the walk. On this image the old-engine row was retained alongside the new one — do not assume it was deleted. A visible user row alone does not prove the user works:
.1.3.6.1.2.1.1.5.0 = STRING: R1.lab
[net-snmp exit 0]Re-tested traps on the wire
Three authPriv loopback traps were authenticated and decrypted by Alpine snmptrapd. On the wire the scopedPDU is encrypted while the engine ID and username stay visible:
usm: match on user pladmin
usm: Verification succeeded.
usm: USM processing completed. msgAuthoritativeEngineID: 800000090300000000005102
msgUserName: pladmin
msgData: encryptedPDU (1)Views: why you restrict what is visible
A view is a security control. A monitoring user should be able to read the interface and system MIBs but not, say, the running configuration or sensitive tables. By building a view that includes only what the user needs, you limit the blast radius if the credentials leak.
! A restrictive view - allow the standard MIBs, deny a sensitive subtree
snmp-server view LIMITED internet included
snmp-server view LIMITED 1.3.6.1.4.1.9.9.99 excluded ! exclude a specific Cisco subtreeThe default deny is implicit: anything not explicitly included in the view is invisible. This is exactly the discipline you want - grant the minimum, and a compromised monitoring account cannot walk your entire MIB tree.
Traps vs informs: the reliability difference
Both send an event notification to a receiver. The difference is acknowledgement:
R1(config)#snmp-server host 192.0.2.99 version 3 priv pladmin udp-port 10162
R1(config)#snmp-server host 192.0.2.99 informs version 3 priv pladmin udp-port 10162show snmp host lists both. In my lab 192.0.2.99 was a documentation address used only to show the trap and inform lines side by side; the live trap receiver was the poller on the management link, and I have trimmed that entry from the output below:
R1#show snmp host
Notification host: 192.0.2.99 udp-port: 10162 type: inform
user: pladmin security model: v3 priv
...
Notification host: 192.0.2.99 udp-port: 10162 type: trap
user: pladmin security model: v3 privUse informs for events you cannot afford to lose - a link failure, an environmental alarm, anything that drives an operational response. Use traps for high-volume, less-critical telemetry where the occasional loss does not matter. The reliability of informs costs the router memory (it holds the state until acknowledged) and generates retransmissions, so it is a deliberate trade, not a default-everything choice. This is documented behavior. I did not test inform delivery, acknowledgements or retries in my lab.
The payoff: a real encrypted trap, decrypted on Linux
Configuration is one thing; proving the encryption works end to end is another. On a Linux trap receiver (net-snmp snmptrapd), the SNMPv3 user must be recreated with the router's engine ID - for traps the router is the authoritative engine, and this is an easy step to miss. These are the two lines my receiver used:
createUser -e 0x800000090300000000005102 pladmin SHA "<LAB_AUTH>" AES "<LAB_PRIV>"
authUser log pladmin privThe -e 0x800000090300000000005102 is the router's current local engine ID from show snmp engineID. Without the matching engine ID, the receiver cannot verify the authentication and the trap is dropped as unauthenticated. A mismatched engine ID is a common reason traps look like they never arrive - the config looks fine, but the receiver cannot verify the authentication.
Trigger an event (a loopback flap generates linkUp and linkDown), and the receiver logs the decrypted trap. My snmptrapd ran with -On, so OIDs are numeric: .1.3.6.1.6.3.1.1.5.4 is linkUp and ifIndex 6 is Loopback99. Management addresses are redacted as <mgmt>:
2026-10-21 18:20:31 R1 [UDP: [<mgmt>]:64486->[<mgmt>]:10162]:
.1.3.6.1.2.1.1.3.0 = Timeticks: (12932) 0:02:09.32 .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.6.3.1.1.5.4 .1.3.6.1.2.1.2.2.1.1.6 = INTEGER: 6 .1.3.6.1.2.1.2.2.1.2.6 = STRING: Loopback99 .1.3.6.1.2.1.2.2.1.3.6 = INTEGER: softwareLoopback(24) .1.3.6.1.4.1.9.2.2.1.1.20.6 = STRING: "up"That output is the whole point: a message that crossed the network authenticated with SHA and encrypted with AES-128, arriving intact and readable only because the receiver held the right credentials and the matching engine ID. A packet capture of that same trap shows the scopedPDU as ciphertext (encryptedPDU), while the engine ID and user name stay readable, as in the re-test capture above. That is SNMPv3 authPriv working - and it is the difference between monitoring you can trust and monitoring that leaks.
Deployment notes
- Engine ID matching is everything for remote users. Trap-receiver users are associated with the sender/router's authoritative engine ID; inform users are associated with the receiver's. Mismatch usually means a silent drop. (Inform delivery itself was not re-tested here.)
- Port 162 is the default, but it is often already bound (by an existing NMS or a system socket). The lab used udp-port 10162 to avoid a conflict - a real-world nuisance worth knowing. Match the port on both ends.
- SHA + AES, never MD5 + DES. The old algorithms are deprecated or broken. If your gear or NMS only supports MD5/DES, that is a reason to upgrade, not a reason to use them.
- Restrict the view. A monitoring user does not need write access or the whole MIB tree.
Key takeaways
- SNMPv3 replaces v2c's cleartext community strings with real authentication and encryption. Use authPriv - anything less leaks data.
- The model is layered: a view (which OIDs) is tied to a group (security level), which a user (credentials) belongs to.
- The user carries two secrets:
auth sha <pass>andpriv aes 128 <pass>. Use SHA and AES, not MD5 and DES. - Restrict the view to the minimum OIDs a monitoring user needs - the default deny limits the damage if credentials leak.
- Traps are fire-and-forget; informs are acknowledged and retransmitted. Use informs for events you cannot afford to lose. (Documented behavior; I did not test informs in my lab.)
- We proved it end to end: a SHA-authenticated, AES-128-encrypted trap decrypted on a Linux receiver. The receiver's user must be created with the matching authoritative engine ID - a step that is easy to miss when traps look like they never arrive.
Next: Embedded Packet Capture - Wireshark inside your router. The full cluster index lives on the IP services pillar.