7.2.2. snmp view

Syntax

snmp view view-name subtree oid-tree oid-mask (all|oid-mask) viewtype (included|excluded)

no snmp view view-name subtree (all|oid-tree)

Parameter

view-name

The SNMP view name. Its maximum length is 30 characters.

subtreeoid-tree

Specify the ASN.1 subtree object identifier (OID) to be included or excluded from the SNMP view.

oid-mask(all|oid-mask)

Specify the OID family mask. It is used to define a family of view subtrees. For example, OID mask FA.80 is is 11111010.10000000. The length of the OID mask must be less than the length of subtree OID.

viewtype (included|excluded)

Include or exclude the selected MIBs in the view.

Default

Mode

Global Configuration

Usage

To configure the SNMP view, use the command snmp view in the Global Configuration mode; and use the no form of the command to delete the SNMP view.

The default SNMP view cannot be deleted and modified by users. By default, the maximum numbers of SNMP view is limited to 16.

Example

The following example defines the SNMP view.

Switch(config)# snmp view private subtree 1.3.3.1 oid-mask all viewtype included