snmp-server view

Last Updated : Nov 06, 2012 |

Configures settings for an SNMP MIB view. If the view does not exist, it is created. An MIB view specifies a particular section or subsection of the MIB tree. You can create a view that includes a particular subsection, or excludes one. Use no snmp-server view to delete the current view.

Syntax

snmp-server view view-name oid-subtree {included|excluded}

no snmp-server view view-name [oid-subtree]

Parameters

Parameter

Description

Possible Values

Default Value

view-name

The name of the view

oid-subtree

The object identifier subtree to be included in or excluded from this view. Oid-subtree is specified as a series of period-separated numbers. In order to include a subtree family, use an asterisk as a wildcard character. Symbolic MIB object names are not supported.

included

Keyword indicating that the view includes the specified subtree (this is the default)

excluded

Keyword indicating that the view excludes the specified subtree

User level

admin

Context

general

Example

To configure settings for an SNMP MIB view named internet including Oidtree 1.3.6.1:

Gxxx-001(super)# snmp-server view internet 1.3.6.1 included