DGS-3212SR Switch CLI Reference
create snmp user
Purpose
Used to create a new SNMP user and adds the
user to an SNMP group that is also created by
this command.
Syntax
create snmp user <username 32>
<groupname 32> {encrypted (1)
[by_password(1) auth[md5(2)
<auth_password 8-16 > | sha(3)
<auth_password 8-20 >]priv [none(1) | des(2)
<priv_password 8-16> ]| by_key(2) auth
[md5(2) <auth_key 32-32>| sha(3) <auth_key
40-40>]priv [none(1) |des(2) <priv_key 32-
32> ]]}
Description
The create snmp user command creates a new
SNMP user and adds the user to an SNMP
group that is also created by this command.
<username 32> − An alphanumeric name of up
Parameters
to 32 characters that will identify the new SNMP
user.
<groupname 32> − An alphanumeric name of
up to 32 characters that will identify the SNMP
group the new SNMP user will be associated
with.
encrypted – Specifies that the password will be
in an encrypted format.
by_password – Indicate input password for
authentication and privacy.
by_key – Indicate input key for authentication
and privacy.
auth – Initiates an authentication level setting
session. The options are MD5 and SHA.
md5 – The HMAC-MD5-96 authentication level.
sha – The HMAC-SHA-96 authentication level.
SNMP Commands
<auth_password 8-16> − An alphanumeric sting
of between 8 and 20 characters that will be
used to authorize the agent to receive packets
for the host.
<priv_password 8-16> − An alphanumeric string
of between 8 and 16 characters that will be
used to encrypt the contents of messages the
host sends to the agent.
<auth_key> – An authentication key used by
MD5 or SHA1, it is hex string type.
<priv_key> – A privacy key used by DES, it is
hex string type.
Restrictions
Only administrator-level users can issue this
command.
Example Usage:
To create an SNMP user on the switch:
DGS-3212SR:4#create snmp user dlink default encrypted
by_password auth md5 auth_password none
Command: create snmp user dlink default encrypted
by_password auth md5 auth_password none
Success.
DGS-3212SR:4#
51
Need help?
Do you have a question about the DGS-3212SR and is the answer not in the manual?