DGS-6604
m
snmp-server user
CLI Reference Guide
855
Usage Guideline
Use this command to create an SNMP user. The group to which this user
belongs must be created first. If this user belongs to a V3 group and also
specifies authentication or encryption, then the password used for authentication
and encryption needs to be defined.
An snmp user is unable to be deleted if it has been associated with an snmp-
server host. An error message will appear to indicate this case.
The snmp user will not be able to manage the device if a password should be
present but it is not present.
No default values exist for authentication or privacy algorithms when the
command is configured. 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 a password is forgotten, it cannot be recovered and it
and will need to manually reconfigured. Either a plain-text password or a
localized message digest 5 (MD5) digest can be specified.
When using a localized MD5 or SHA digest, the string can be specified instead of
the plain-text password. The digest should be formatted as aa:bb:cc:dd where
aa, bb, and cc are hex values.
Examples
In the following example, the plain-text password "hb123" is configured for the
user "abcd" in the SNMPv3 group "public".
In the following example, the MD5 digest string is used instead of the plain text
password.
Verify the settings by entering the
show snmp user
command.
Switch(config)# snmp-server user abcd public v3 auth md5 hb123
Switch(config)# snmp-server user abcd public v3 encrypted auth md5
00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF