snmp-server user
This command adds a user to an SNMP group, restricting the user to a specific
SNMP Read, Write, or Notify View. Use the
no
form to remove a user from an SNMP
group.
Syntax
snmp-server user username groupname [remote ip-address] {v1 | v2c | v3
[
encrypted
] [
auth
{
md5
|
sha
} auth-password [
priv des56
priv-password]]
no snmp-server user username {v1 | v2c | v3 | remote }
username - Name of user connec tin g to th e SNM P ag ent.
(Range: 1-32 characters)
• groupname - Name of an SNMP group to which the user is assigned.
(Range: 1-32 characters)
remote - Specifies an SNMP engine on a rem ote devic e.
ip-address - The Internet ad dress of the remote dev ice.
v1 | v2c | v3 - Use SNMP vers ion 1, 2c or 3.
encrypted - Accepts the password as encrypt ed input.
auth - Uses SNMPv3 with authentica tion.
md5 | sha - Uses MD5 or SHA authentication.
auth-password - Authentication pa ssword. Enter as plain t ext if the
encrypted
option is not used. Otherwise, enter an encrypted password.
(A minimum of eight characters is required.)
priv des56 - Uses SNMPv3 with privacy with DES5 6 encryption.
priv-password - Privacy pas sword. Enter as plain te xt if the enc rypted
option is not used. Otherwise, enter an encrypted password.
Default Setting
None
Command Mode
Global Configuration
Command Usage
The SNMP engine ID is used to compute the authenti cation/pr ivacy digest s
from the password. You should therefore configure the engine ID with th e
snmp-server engine-id
command before using this configuration command.
Before you configure a remote user, use the snmp-server engine-id
command (page 24-8) to specify the engine ID f or the rem ote dev ice where
the user resides. Then use the
snmp-server user
command to specify the
user and the IP address for the remot e device w here the user re sides. The
remote agent’s SNMP engine ID is used to compute authentication/privacy
digests from the user’s password. If the remote engine ID is not first configured,
the
snmp-server user
command specifying a remote user will fail.
SNMP passwords are localized using the engine ID of the authoritat ive a gent.
For informs, the authoritative SNMP agent is the remote agent. Yo u th eref ore
24-14
SNMP Commands
24