Specifications

2-254
Cisco IOS Command Reference for Cisco Aironet Access Points and Bridges
0L-24115-01
Chapter 2 Cisco IOS Commands for Access Points and Bridges
snmp-server view
snmp-server view
To create or update a view entry, use the snmp-server view global configuration command. To remove
the specified SNMP server view entry, use the no form of the command.
[no] snmp-server view view-name oid-tree {included | excluded}
Syntax Description
Defaults This command has no defaults.
Command Modes Global configuration
Command History
Usage Guidelines Other SNMP commands require a view as an argument. You use this command to create a view to be
used as arguments for other commands that create records including a view.
When a view is required, you can use one of two standard predefined views instead of defining a view.
One predefined view is everything, which indicates that the user can see all objects. The other is
restricted, which indicates that the user can see three groups: system, snmpStats, and snmpParties. The
predefined views are described in RFC 1447.
The first snmp-server command that you enter enables both versions of SNMP.
Examples The following example creates a view that includes all objects in the MIB-II subtree:
snmp-server view mib2 mib-2 included
The following example creates a view that includes all objects in the MIB-II system group and all objects
in the Cisco enterprise MIB:
snmp-server view phred system included
snmp-server view phred cisco included
view-name Label for the view record that you are updating or creating. The name
is used to reference the record.
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. Replace a single
subidentifier with the asterisk (*) wildcard to specify a subtree family;
for example, 1.3.*.4.
included | excluded Type of view. You must specify either included or excluded.
Release Modification
12.3(4)JA This command was introduced.