xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
534
create snmp view
Purpose
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
This command is used to assign 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-3450:admin#create snmp view view123 1.3.6 view_type included
Command: create snmp view view123 1.3.6 view_type included
Success.
DGS-3450:admin#
delete snmp view
Purpose
Used to remove a view record.
Syntax
delete snmp view <view_name 32> [all | <oid>]
Description
This command is used to remove 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.
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-3450:admin#delete snmp view view123 all
Command: delete snmp view view123 all
Success.
DGS-3450:admin#
show snmp view
Purpose
Used to display the SNMP view record.