Troubleshooting notes · Network management

SNMPv3 "Unsupported security level" from a Cisco router

An SNMPv3 query with authPriv fails with "Unsupported security level". How to see that the user has no privacy key on the router, and fix it. Real output from Cisco IOS XE 17.18 and Net-SNMP.

The symptom

The monitoring server queries the router with SNMPv3 authPriv (authenticated and encrypted), and every request fails. On the router, the user and group show why:

NMS# snmpget -v3 -l authPriv -u nms1 -a SHA -A Auth-Pass-2026 -x AES -X Priv-Pass-2026 10.0.0.2 1.3.6.1.2.1.1.5.0 2>&1
snmpget: Unsupported security level
R2# show snmp user
User name: nms1
Engine ID: 800000090300AABBCC005000
storage-type: nonvolatile    active
Authentication Protocol: SHA
Privacy Protocol: None
Group-name: NMS-GROUP
R2# show snmp group | include groupname|security|readview
groupname: NMS-GROUP                        security model:v3 auth 
readview : IFONLY                           writeview: <no writeview specified>

Why it happens

SNMPv3 has three security levels: noAuthNoPriv, authNoPriv (authentication only) and authPriv (authentication and encryption). The level the NMS asks for must match what the router's user and group support. Here the user nms1 has an authentication key but Privacy Protocol: None, and its group is only auth. The router can't decrypt an authPriv request for that user, so it rejects it, and Net-SNMP reports Unsupported security level.

The fix

Make the group priv, then remove the user and configure it again with both keys:

R2(config)# no snmp-server user nms1 NMS-GROUP v3
R2(config)# no snmp-server group NMS-GROUP v3 auth read IFONLY
R2(config)# snmp-server group NMS-GROUP v3 priv
R2(config)# snmp-server user nms1 NMS-GROUP v3 auth sha Auth-Pass-2026 priv aes 128 Priv-Pass-2026

In the lab, the old group also limited the user to a read view of the interfaces table only, which was a separate fault. The new group line has no read view, so it uses the default v1default view; if your network uses a view, add read <view> to the group.

Check it

show snmp group should now show the group with security model v3 priv, and the same snmpget -v3 -l authPriv … from the NMS should return a value. If it times out instead, check the next usual suspect: an ACL on the community or group that doesn't include the NMS.

Practise this fault

This fault is in CCNA Lab 29 of CCNA Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.

Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:

We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.