Command Reference SNMP Commands
Displays the SNMP user configuration.
Use this command to configure an SNMP view. Use the no form of this command to remove an
SNMP view.
snmp-server view view-name oid-tree { include | exclude }
no snmp-server view view-name [ oid-tree ]
Specifies the MIB object to associate with the view.
Includes the sub trees of the MIB object in the view.
Excludes the sub trees of the MIB object from the view.
By default, a view is set to access all MIB objects.
Global configuration mode.
The following example 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
Displays the SNMP view configuration.