Page 636 / 757 Scroll up to view Page 631 - 635
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
632
DGS-3627:admin# show snmp community
Command: show snmp community
SNMP Community Table
Community Name
View Name
Access Right
-------------------------------
-------------------------------
------------
private
CommunityView
read_write
public
CommunityView
read_only
Total Entries : 2
DGS-3627:admin#
create snmp user
Purpose
This command is used to create a new user to an SNMP group originated by this command.
Syntax
create snmp user <username 32> <groupname 32> {encrypted [by_password auth [
md5 <auth_password 8-16 > | sha <auth_password 8-20 >] priv [none | des
<priv_password 8-16>] | by_key auth [md5 <auth_key 32-32> | sha <auth_key 40-40>]
priv [none | des <priv_key 32-32>]]}
Description
The create snmp user command creates a new user to an SNMP group originated by this
command. User can chose input authentication and privacy by password or by key.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
username
- The name of the user on the host that connects to the agent. The range is 1 to
32.
groupname
- The name of the group to which the user is associated. The range is 1 to 32.
encrypted
- Specifies whether the password appears in encrypted format.
by_password
- Indicate input password for authentication and privacy.
by_ke
y - 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.
auth_password
- An authentication string used by MD5 or SHA1.
priv_password
- A privacy string used by DES.
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 and Operator-level users can issue this command.
Example usage:
To create a SNMP user “user123” with group “group123”:
DGS-3627:admin# create snmp user user123 group123 encrypted by_password auth md5
12345678 priv des 12345678
Command: create snmp user user123 group123 encrypted by_password auth md5
12345678 priv des 12345678
Success.
DGS-3627:admin#
Page 637 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
633
delete snmp user
Purpose
This command is used to remove a user from an SNMP group and delete the associated
group in SNMP group.
Syntax
delete snmp user <username 32>
Description
The delete snmp user command removes a user from a SNMP group and deletes the
associated group in SNMP group.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
<username32>
- The name of the user on the host that connects to the agent. The range is 1
to 32.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a SNMP user “user123”:
DGS-3627:admin# delete snmp user user123
Command: delete snmp user user123
Success.
DGS-3627:admin#
show snmp user
Purpose
This command is used to display information on each SNMP username in the group
username table.
Syntax
show snmp user
Description
The show snmp user command displays information on each SNMP username in the group
username table.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
None.
Restrictions
None.
Example usage:
To show SNMP user:
DGS-3627:admin# show snmp user
Command: show snmp user
Username
Group Name
VerAuthPriv
--------------------------------
--------------------------------
-----------
initial
initial
V3 NoneNone
user123
group123
V3 MD5 DES
Total Entries : 2
DGS-3627:admin#
create snmp group
Purpose
This command is used to create a new SNMP group, or a table that maps SNMP users to
Page 638 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
634
create snmp group
SNMP views.
Syntax
create snmp group <groupname 32> [v1 | v2c | v3 [noauth_nopriv | auth_nopriv |
auth_priv]] {read_view <view_name 32> | write_view <view_name 32> | notify_view
<view_name 32>}
Description
The create snmp group command creates a new SNMP group.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
groupname
- The name of the group.
v1
- The least secure of the possible security models.
v2c
- The second least secure of the possible security models.
v3
- The most secure of the possible. Specifies authentication of a packet.
noauth_nopriv
- Neither support packet authentication nor encrypting.
auth_nopriv
- Support packet authentication.
auth_priv
- Support packet authentication and encrypting.
view_name
- View name.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create SNMP group “group123”:
DGS-3627:admin# create snmp group group123 v3 auth_priv read_view CommunityView w
rite_view CommunityView notify_view CommunityView
Command: create snmp group group123 v3 auth_priv read_view CommunityView write_v
iew CommunityView notify_view CommunityView
Success.
DGS-3627:admin#
delete snmp group
Purpose
This command is used to remove a SNMP group.
Syntax
delete snmp group <groupname 32>
Description
The delete snmp group command removes a SNMP group.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
<groupname 32>
- The name of the group will be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete SNMP group “group123”:
DGS-3627:admin# delete snmp group group123
Command: delete snmp group group123
Success.
DGS-3627:admin#
Page 639 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
635
show snmp groups
Purpose
This command is used to display the names of groups on the switch and the security model,
level, the status of the different views.
Syntax
show snmp groups
Description
The show snmp groups command displays the names of groups on the switch and the
security model, level, the status of the different views.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
None.
Restrictions
None.
Example usage:
To show SNMP groups:
Page 640 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
636
DGS-3627:admin# show snmp groups
Command: show snmp groups
Vacm Access Table Settings
Group
Name
: public
ReadView Name
: CommunityView
WriteView Name
:
Notify View Name : CommunityView
Securiy Model
: SNMPv1
Securiy Level
: NoAuthNoPriv
Group
Name
: public
ReadView Name
: CommunityView
WriteView Name
:
Notify View Name : CommunityView
Securiy Model
: SNMPv2
Securiy Level
: NoAuthNoPriv
Group
Name
: initial
ReadView Name
: restricted
WriteView Name
:
Notify View Name : restricted
Securiy Model
: SNMPv3
Securiy Level
: NoAuthNoPriv
Group
Name
: private
ReadView Name
: CommunityView
WriteView Name
: CommunityView
Notify View Name : CommunityView
Securiy Model
: SNMPv1
Securiy Level
: NoAuthNoPriv
Group
Name
: private
ReadView Name
: CommunityView
WriteView Name
: CommunityView
Notify View Name : CommunityView
Securiy Model
: SNMPv2
Securiy Level
: NoAuthNoPriv
Group
Name
: group123
ReadView Name
: view123
WriteView Name
: view123
Notify View Name : view123
Securiy Model
: SNMPv3
Securiy Level
: authPriv
Group
Name
: ReadGroup
ReadView Name
: CommunityView
WriteView Name
:
Notify View Name : CommunityView
Securiy Model
: SNMPv1
Securiy Level
: NoAuthNoPriv
Group
Name
: ReadGroup
ReadView Name
: CommunityView
WriteView Name
:
Notify View Name : CommunityView
Securiy Model
: SNMPv2

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top