DGS-6604
m
snmp-server view
CLI Reference Guide
856
snmp-server view
Use this command to create or update a view entry for SNMP. And use the
no
snmp-server view
command to remove a specified SNMP view entry.
snmp-server view
VIEW-NAME OID-TREE
{included | excluded}
no snmp-server view
VIEW-NAME
Default
There are two VIEWs set as shown below:
VIEW-NAME
OID-TREE
View Type
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
Include
Command Mode
Global configuration at privilege level 15
Usage Guideline
Use this command to create a view for the MIB object trees.
The view needs to be specified when the
snmp-server group
command is used
to define a user group.
Syntax Description
VIEW-NAME
Label for the view record that being updating or created. The name is used to
reference the record. The valid length for
VIEW-NAME
is 1 to 32 characters. The
syntax is a general string that does not allow space.
OID-TREE
Object identifier of the ASN.1 subtree to be included or excluded from the view.
To identify the subtree, specify a text string consisting of numbers, such as
1.3.6.2.4., or a word such as system.
included
(Optional) Configures the OID (and subtree OIDs) specified in the
OID-TREE
argument to be included in the SNMP view.
excluded
(Optional) Configures the OID (and subtree OIDs) specified in
OID-TREE
argument to be explicitly excluded from the SNMP view.