Chapter 57: SNMPv1 and SNMPv2c Commands
822 Section IX: Simple Network Management Protocols
SNMP-SERVER VIEW
Syntax
snmp-server view
viewname
oid
excluded|included
Parameters
viewname Specifies the name of a new view. The maximum length
is 64 alphanumeric characters. The string is case
sensitive. Spaces are not allowed.
oid Specifies the OID of the view. The OID must be in
decimal format.
excluded Denies access to the part of the MIB tree specified by
the OID.
included Permits access to the part of the MIB tree specified by
the OID.
Mode
Global Configuration mode
Description
Use this command to create SNMPv1 and SNMPv2c views on the switch.
Views are used to restrict the MIB objects that network managers can
access through the community strings. A view can have more than one
OID, but each OID must be entered in a separate command.
Confirmation Command
“SHOW SNMP-SERVER VIEW” on page 815
Examples
This example creates a view that excludes all MIB objects in the OID
1.3.6.1.2.1. The view is assigned the name “sw12_restrict_view:”
awplus> enable
awplus# configure terminal
awplus(config)# snmp-server view sw12_restrict_view
1.3.6.1.2.1 excluded
This example creates the new view “AlliedTelesis” that limits the available
MIB objects to those in the OID 1.3.6.1.4.1.207: