SNMP Commands
snmp-server view
snmp-server view
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
To define an SNMP view, use the snmp-server view Global Configuration mode
command.
To delete an SNMP view, use the no form of this command.
Syntax
view-name
snmp-server view
{included | excluded}
no snmp-server view
Parameters
view-name
•
—The SNMP view name. (Length: 1 to 30 characters)
oid-tree
•
subtree
included or excluded from the SNMP 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 and, optionally, a sequence of numbers. Replace a single
subidentifier with the asterisk (*) wildcard to specify a subtree family; for
example, 1.3.*.4. This parameter depends on the MIB being specified.
MASK
•
oid-mask {all |
family of view subtrees. For example, OID mask is 11111010.10000000.
The length of the OID mask must be less than the length of subtree OID.
•
viewtype included—Includes the selected MIBs in the view.
•
viewtype excluded—Excludes the selected MIBs in the view.
Default Configuration
N/A
Command Mode
Global Configuration mode
User Guidelines
This command can be entered multiple times for the same SNMP view.
The command's logical key is the pair (
cannot have the same
The number of SNMP views is limited to 16.
oid-tree
subtree
view-name
subtree [
oid-tree
—Specifies the ASN.1 subtree object identifier (OID) to be
}—Specifies the family mask. It is used to define a
view-name
view-name
and
oid-tree
MASK
oid-mask {all |
| all]
oid-tree
,
). Two commands
.
32
} viewtype
448