C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
SNMP Server Commands on Cisco IOS XR Software
snmp-server view
SMR-661
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
snmp-server view
To create or update a Simple Network Management Protocol (SNMP) view entry, use the
snmp-server
view
command in global configuration mode. To remove the specified server view entry, use the
no
form
of this command.
snmp-server
view
view-name
oid-tree
{
excluded
|
included
}
no snmp-server
view
view-name
oid-tree
{
excluded
|
included
}
Syntax Description
Defaults
No view entry exists.
Command Modes
Global configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Other SNMP commands require a view as a keyword. Use the
snmp-server view
command to create a
view to be used as keywords for other commands that create records including a view.
Instead of defining a view explicitly, you can rely on the following predefined views, which are
supported by the SNMP agent:
•
all—Predefined view indicating that a user can see all objects.
•
CfgProt—Predefined view indicating that a user can see all objects except the SNMPv3
configuration tables.
•
vacmViewTreeFamilyEntry—Predefined view indicating that a user can see the default
configuration of vacmViewTreeFamilyEntry.
The predefined views supported on the Cisco IOS XR software, however, do not match the predefined
views specified in RFC 3415.
view-name
Label for the view record being updated or created. The name is used to
reference the record.
oid-tree
Object identifier (OID) 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
. Replace a single subidentifier
with the asterisk (*) wildcard to specify a subtree family; for example
1.3.*.4.
excluded
Excludes the MIB family from the view.
included
Includes the MIB family in the view.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.