NM SNMP Snmpv3
NM SNMP Snmpv3
The SNMP Version 3 feature provides secure access to devices by authenticating and encrypting data packets
over the network. Simple Network Management Protocol version 3 (SNMPv3) is an interoperable,
standards-based protocol that is defined in RFCs 3413 to 3415. This module discusses the security features
provided in SNMPv3 and describes how to configure the security mechanism to handle SNMP packets.
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
1
SNMP Version 3
Cisco-Specific Error Messages for SNMP Version 3
SNMPv3 is a security model in which an authentication strategy is set up for a user and the group in which
the user resides. Security level is the permitted level of security within a security model. A combination of a
security model and a security level determines which security mechanism is used when handling an SNMP
packet.
The table below describes the combinations of SNMPv3 security models and levels.
SNMPv3 supports RFCs 1901 to 1908, 2104, 2206, 2213, 2214, and 2271 to 2275. For more information
about SNMPv3, see RFC 2570, Introduction to Version 3 of the Internet-standard Network Management
Framework (this document is not a standard).
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
2
SNMP Version 3
Cisco-Specific Error Messages for SNMP Version 3
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
3
SNMP Version 3
How to Configure SNMP Version 3
Note If an SNMP user belonging to an SNMP group is not configured with the password or if the group security
level is not the same as the user security level, the error shown is “AUTHORIZATION_ERROR”. The
Cisco-specific error message for this scenario is “unknownUserName”.
Note The SNMP user cannot be removed if the engine ID is changed after configuring the SNMP user. To
remove the user, you must first reconfigure all the SNMP configurations.
Note Default values do not exist for authentication or privacy algorithms when you configure the SNMP
commands. Also, no default passwords exist. The minimum length for a password is one character, although
it is recommended to use at least eight characters for security. If you forget a password, you cannot recover
it and must reconfigure the user. You can specify either a plain text password or a localized MD5 digest.
Perform this task to specify an SNMP server group name and to add a new user to an SNMP group.
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
4
SNMP Version 3
Configuring the SNMP Server
SUMMARY STEPS
1. enable
2. configure terminal
3. snmp-server group [group-name {v1 | v2c | v3 [auth | noauth | priv]}] [read read-view] [write
write-view] [notify notify-view] [access access-list]
4. snmp-server engineID {local engine-id | remote ip-address [udp-port udp-port-number] [vrf vrf-name]
engine-id-string}
5. snmp-server user user-name group-name [remote ip-address [udp-port port]] {v1 | v2c | v3
[encrypted] [auth {md5 | sha} auth-password]} [access access-list]
6. end
DETAILED STEPS
Example:
Device# configure terminal
Step 3 snmp-server group [group-name {v1 | v2c | v3 [auth Configures the SNMP server group to enable authentication for
| noauth | priv]}] [read read-view] [write write-view] members of a specified named access list.
[notify notify-view] [access access-list]
• In this example, the SNMP server group group1 is
configured to enable user authentication for members of
Example: the named access list lmnop.
Device(config)# snmp-server group group1 v3
auth access lmnop
Step 4 snmp-server engineID {local engine-id | remote Configures the SNMP engine ID.
ip-address [udp-port udp-port-number] [vrf vrf-name]
engine-id-string} • In this example, the SNMP engine ID is configured for a
remote user.
Example:
Device(config)# snmp-server engineID remote
172.16.15.4 udp-port 120 1a2833c0129a
Step 5 snmp-server user user-name group-name [remote Adds a new user to an SNMPv3 group and configures a plain
ip-address [udp-port port]] {v1 | v2c | v3 [encrypted] text password for the user.
[auth {md5 | sha} auth-password]} [access access-list] Note For the auth-password argument, the minimum length
is one character; the recommended length is at least
eight characters, and the password should include both
letters and numbers.
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
5
SNMP Version 3
Verifying SNMP Version 3
Example:
Device(config)# end
SUMMARY STEPS
1. enable
2. show snmp group
3. show snmp user [username]
4. show snmp engineID
DETAILED STEPS
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
6
SNMP Version 3
Configuration Examples for SNMP Version 3
The following example shows how to configure a remote user to receive traps at the “noAuthNoPriv” security
level when the SNMPv3 security model is enabled:
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
7
SNMP Version 3
Additional References for SNMP Version 3
The following example shows how to configure a remote user to receive traps at the “authNoPriv” security
level when the SNMPv3 security model is enabled:
The following example shows how to configure a remote user to receive traps at the “priv” security level when
the SNMPv3 security model is enabled:
SNMP commands: complete command syntax, Cisco IOS SNMP Support Command Reference
command mode, command history, defaults, usage
guidelines, and examples
Standard/RFC Title
RFC 2104 HMAC: Keyed-Hashing for Message Authentication
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
8
SNMP Version 3
Feature Information for SNMP Version 3
MIBs
Technical Assistance
Description Link
The Cisco Support and Documentation website http://www.cisco.com/cisco/web/support/index.html
provides online resources to download documentation,
software, and tools. Use these resources to install and
configure the software and to troubleshoot and resolve
technical issues with Cisco products and technologies.
Access to most tools on the Cisco Support and
Documentation website requires a Cisco.com user ID
and password.
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
9
SNMP Version 3
Feature Information for SNMP Version 3
SNMP Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
10