Creating a new entry for the MIB in the view table

Create a new entry in the MIB view table. The default Layer 2 MIB view cannot modify SNMP settings. However, a new MIB view created with Layer 2 permission can modify SNMP settings.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Create a new entry:

    snmp-server view WORD<1-32> WORD<1-32>

Example

Switch:1>enable 
Switch:1#configure terminal 

Create MIB views:

Switch:1(config)snmp-server view 2 1.3.8.7.1.4 

Variable Definitions

The following table defines parameters for the snmp-server view command.

Variable

Value

The first WORD<1-32>

Specifies the prefix that defines the set of MIB objects accessible by this SNMP entity. The range is 1–32 characters.

The second WORD<1-32>

Specifies a new entry with this group name. The range is 1–32 characters.