Defining SNMP Views
All MIB objects are automatically
excluded from any view unless they are explicitly included.
- Enter the global configuration mode.
- Specify the maximum number of
SNMPv2 and v3 views that can be configured on a device.The number of views can be from 10 through 65536. The default is 10 views.
- Add an SNMP view and configure
the access level using the included or excluded
keywords.
device(config)# snmp-server view Maynes system included device(config)# snmp-server view Maynes system.2 excluded device(config)# write memory
In the example, "Maynes system" is included in the SNMP view and "Maynes system.2" is excluded from the SNMP view. You can also exclude views that are within the scope of inclusion.