CLI Reference Guide SNMP Configuration Commands
snmp-server view
Use this command to set a SNMP view in global configuration mode. The no form of this command is
used to delete the view.
snmp-server view view-name oid-tree { include | exclude }
no snmp-server view view-name [ oid-tree ]
Specify the MIB object to associate with the view.
Include the sub trees of the MIB object in the view.
Exclude the sub trees of the MIB object from the view.
By default, a default view is set to access all MIB objects.
Global configuration mode.
The example below sets a view that includes all MIB-2 sub-trees (oid is 1.3.6.1).
Ruijie(config)# snmp-server view mib2 1.3.6.1 include
Show the view configuration.