SNMP Commands
snmp-server view
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
448
32
snmp-server view
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
snmp-server view
view-name
subtree
oid-tree
oid-mask {all |
MASK
} viewtype
{included | excluded}
no snmp-server view
view-name
subtree [
oid-tree
| all]
Parameters
•
view-name
—The SNMP view name. (Length: 1 to 30 characters)
•
subtree
oid-tree
—Specifies the ASN.1 subtree object identifier (OID) to be
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.
•
oid-mask {all |
MASK
}—Specifies the family mask. It is used to define a
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 (
view-name
,
oid-tree
). Two commands
cannot have the same
view-name
and
oid-tree
.
The number of SNMP views is limited to 16.