![Cisco ASR 14000 Series Скачать руководство пользователя страница 664](http://html.mh-extra.com/html/cisco/asr-14000-series/asr-14000-series_management-command-reference_66667664.webp)
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-662
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
Task ID
Examples
The following example creates a view that includes all objects in the MIB-II subtree:
RP/0/RP0/CPU0:Router(config)#
snmp-server view mib2 1.3.6.1.2.1 included
The following example shows how to create a view that includes all objects in the MIB-II system group
and all objects in the Cisco enterprise MIB:
RP/0/RP0/CPU0:Router(config)#
snmp-server view view1 1.3.6.1.2.1.1 included
RP/0/RP0/CPU0:Router(config)#
snmp-server view view1 1.3.6.1.4.1.9 included
The following example shows how to create a view that includes all objects in the MIB-II system group
except for sysServices (System 7) and all objects for interface 1 in the MIB-II interfaces group:
RP/0/RP0/CPU0:Router(config)#
snmp-server view view1 1.3.6.1.2.1.1 included
RP/0/RP0/CPU0:Router(config)#
snmp-server view view1 1.3.6.1.2.1.1.7 excluded
RP/0/RP0/CPU0:Router(config)#
snmp-server view view1 1.3.6.1.2.1.2.2.1.*.1 included
Related Commands
Task ID
Operations
snmp
read, write
Command
Description
Displays information about the configured views.
Configures an SNMP user group.