Configuring SNMP
Configuring SNMP Users
The commands used to configure SNMP users in Cisco NX-OS are different from those used to configure
users in Cisco IOS.
Note
Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Configures an SNMP user with authentication
and privacy parameters.
switch(config)# snmp-server user name [auth
{md5 | sha} passphrase [auto] [priv [aes-128]
passphrase] [engineID id] [localizedkey]]
Step 2
The passphrase can be any case-sensitive,
alphanumeric string up to 64 characters.
Example:
switch(config)# snmp-server user Admin
auth sha abcd1234 priv abcdefgh
If you use the localizedkey keyword, the
passphrase can be any case-sensitive,
alphanumeric string up to 130 characters.
The engineID format is a 12-digit,
colon-separated decimal number.
Displays information about one or more SNMP
users.
(Optional) switch# show snmp user
Example:
Step 3
switch(config) # show snmp user
Saves the change persistently through reboots
and restarts by copying the running
configuration to the startup configuration.
(Optional) copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Step 4
Example
The following example shows how to configure an SNMP user:
switch# config t
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# snmp-server user Admin auth sha abcd1234 priv abcdefgh
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
96
Configuring SNMP
Configuring SNMP