Page 641 / 757 Scroll up to view Page 636 - 640
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
637
Securiy Level
: NoAuthNoPriv
Group
Name
: WriteGroup
ReadView Name
: CommunityView
WriteView Name
: CommunityView
Notify View Name : CommunityView
Securiy Model
: SNMPv1
Securiy Level
: NoAuthNoPriv
Group
Name
: WriteGroup
ReadView Name
: CommunityView
WriteView Name
: CommunityView
Notify View Name : CommunityView
Securiy Model
: SNMPv2
Securiy Level
: NoAuthNoPriv
Total Entries: 10
DGS-3627:admin#
create snmp view
Purpose
This command is used to assign views to community strings to limit which MIB objects an
SNMP manager can access.
Syntax
create snmp view <view_name 32> <oid> view_type [included | excluded]
Description
The create snmp view command assigns views to community strings to limit which MIB
objects an SNMP manager can access.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
view_name
- View name to be created.
oid
- Object-Identified tree, MIB tree.
view_type
- Specify the access type of the MIB tree in this view.
included
- Includes for this view.
excluded
- Excluded for this view.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create SNMP view “view123”:
DGS-3627:admin# create snmp view view123 1.3.6 view_type included
Command: create snmp view view123 1.3.6 view_type included
Success.
DGS-3627:admin#
delete snmp view
Purpose
This command is used to remove a view record.
Syntax
delete snmp view <view_name 32> [all | <oid>]
Description
The delete snmp view command removes a view record.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
view_name
- View name to be deleted.
Page 642 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
638
delete snmp view
all
- All view record.
oid
- Object-Identified tree, MIB tree.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete SNMP view “view123”:
DGS-3627:admin# delete snmp view view123 all
Command: delete snmp view view123 all
Success.
DGS-3627:admin#
show snmp view
Purpose
This command is used to display the SNMP view record.
Syntax
show snmp view {<view_name 32>}
Description
The show snmp view command displays the SNMP view record.
Parameters
view_name
- View name of the user who likes to show.
Restrictions
None.
Example usage:
To show SNMP view:
DGS-3627:admin# show snmp view
Command: show snmp view
Vacm View Table Settings
View Name
Subtree
View Type
--------------------------------
----------------------------------
----------
view123
1.3.6
Included
restricted
1.3.6.1.2.1.1
Included
restricted
1.3.6.1.2.1.11
Included
restricted
1.3.6.1.6.3.10.2.1
Included
restricted
1.3.6.1.6.3.11.2.1
Included
restricted
1.3.6.1.6.3.15.1.1
Included
CommunityView
1
Included
CommunityView
1.3.6.1.6.3
Excluded
CommunityView
1.3.6.1.6.3.1
Included
Total Entries: 9
DGS-3627:admin#
create snmp host
Purpose
This command is used to create a recipient of an SNMP trap operation.
Syntax
create snmp [ host <ipaddr> | v6host <ipv6addr>] [v1 | v2c | v3 [noauth_nopriv |
auth_nopriv | auth_priv] ] <auth_string 32>
Page 643 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
639
create snmp host
Description
The create snmp host command creates a recipient of an SNMP operation.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
<ipaddr>
- The IP address of the recipient for which the traps are targeted.
<ipv6addr>
- Specifies the IPv6 host address to which the trap packet will be sent.
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.
noauth_nopriv
- Neither support packet authentication nor encrypting.
auth_nopriv
- Support packet authentication.
auth_priv
- Support packet authentication and encrypting.
<auth_string 32>
- Authentication string. If the v1 or v2 is specified, the auth_string presents
the community string, and it must be one of the entries in community table. If the v3 is
specified, the auth_string presents the user name, and it must be one of the entries in the
user table.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create SNMP host “10.0.0.1” with community string “public”:
DGS-3627:admin# create snmp host 10.0.0.1 v1 public
Command: create snmp host 10.0.0.1 v1 public
Success.
DGS-3627:admin#
To create SNMP host “3FFE::51” with community string “public”:
DGS-3627:admin# create snmp v6host 3FFE::51 v1 public
Command: create snmp v6host 3FFE::51 v1 public
Success.
DGS-3627:admin#
To create SNMP host “3FFE::4” with user name “user123”:
DGS-3627:admin# create snmp v6host 3FFE::4 v3 auth_nopriv user123
Command: create snmp v6host 3FFE::4 v3 auth_nopriv user123
Success.
DGS-3627:admin#
delete snmp host
Purpose
This command is used to delete a recipient of an SNMP trap operation.
Syntax
delete snmp [host <ipaddr> | v6host <ipv6addr>]
Description
The delete snmp host command deletes a recipient of an SNMP trap operation.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Page 644 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
640
delete snmp host
Parameters
host
- The IP address of the recipient for which the traps are targeted.
v6host
- Specifies the IPv6 host address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete SNMP host “10.0.0.1”:
DGS-3627:admin# delete snmp host 10.0.0.1
Command: delete snmp host 10.0.0.1
Success.
DGS-3627:admin#
show snmp host
Purpose
This command is used to display the recipient for which the traps are targeted.
Syntax
show snmp host { <ipaddr> }
Description
The show snmp host command displays the recipient for which the traps are targeted.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
host
- The IP address of the recipient for which the traps are targeted.
If no parameter specified, all SNMP hosts will be displayed.
Restrictions
None.
Example usage:
To show SNMP host:
DGS-3627:admin# show snmp host
Command: show snmp host
SNMP Host Table
Host IP Address
SNMP Version
Community Name / SNMPv3 User Name
---------------
---------------
---------------------------------
10.90.90.3
V3 noauthnopriv
initial
10.90.90.2
V2c
private
10.90.90.1
V1
public
10.90.90.4
V3 authnopriv
user123
10.90.90.5
V3 authpriv
user234
Total Entries : 5
DGS-3627:admin#
show snmp v6host
Purpose
This command is used to display the recipient for which the traps are targeted.
Syntax
show snmp v6host { <ipv6addr> }
Description
The show snmp v6host command displays the recipient for which the traps are targeted.
Page 645 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
641
show snmp v6host
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
v6host
- Specifies the IPv6 host address.
If no parameter specified, all SNMP hosts will be displayed.
Restrictions
None.
Example usage:
To show SNMP host:
DGS-3627:admin# show snmp v6host
Command: show snmp v6host
SNMP Host Table
------------------------------------------------------------------
Host IPv6 Address : 3FFE::3
SNMP Version
: V3 na/np
Community Name/SNMPv3 User Name : initial
Host IPv6 Address : 3FFE::2
SNMP Version
: V2c
Community Name/SNMPv3 User Name : private
Host IPv6 Address : 3FFE::1
SNMP Version
: V1
Community Name/SNMPv3 User Name : public
Host IPv6 Address : 3FFE::3
SNMP Version
: V3
a/np
Community Name/SNMPv3 User Name : user123
Host IPv6 Address : 3FFE::3
SNMP Version
: V3
a/ p
Community Name/SNMPv3 User Name : user234
Total Entries: 5
DGS-3627:admin#
config snmp engineID
Purpose
This command is used to configure a identifier for the SNMP engine on the switch.
Syntax
config snmp engineID <snmp_engineID>
Description
The config snmp engineID command configures an identifier for the SNMP engine on the
switch. Associated with each SNMP entity is a unique engineID.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
snmp_engineID
- Identify for the SNMP engine on the switch. It is octet string type. It accepts
the hex number directly.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure SNMP engine ID to “1023457890”:

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top