Creating and Managing MIB Views

You can add a MIB view or delete an existing subtree and view.

Adding a MIB View

You can add a new view or add a portion (subtree) of the MIB to an existing view. You can add more than one subtree to an existing view.

Procedure:

Step Action
1 Select Telnet to Module from the application tree and connect to the line card.
2 At the Main prompt (Main>), enter Config.
3 Press return. At the Config prompt (Config>), enter snmp.
4 Press Return. The SNMP Config> prompt is displayed.
5 Enter add subtree.
6 Press Return. The following message is displayed:

View name []?

7 If you want to create a new view, enter a name that is not already being used.

If you want to add a subtree to an existing view, enter the name of an existing view.

The name can have up to 32 alphanumeric characters and cannot include spaces, tabs, or Escape key sequences.

8 Press Return. The following message is displayed:

MIB OID name []?

9 Enter the numeric value of the MIB Object ID (OID) for which you want to create a new view or add to an existing view.

Example: MIB OID name []? 1.3.6.1.4.1.2

10 Press Return. The view is created or added to an existing view, and the SNMP Config> prompt is displayed.
11 Log out of the Telnet session and terminate the connection.

Deleting a Subtree and View

Procedure:

Step Action
1 Select Telnet to Module from the application tree and connect to the line card.
2 At the Main prompt (Main>), enter Config.
3 Press Return. At the Config prompt (Config>), enter snmp.
4 Press Return. The SNMP Config> prompt is displayed.
5 Enter delete  subtree.
6 Press Return. The following message is displayed:

View name []?

7 Enter the name of the view you want to delete or the name of the view containing the subtree you want to delete.
8 Press Return. The following message is displayed:

MIB OID name []?

9 Enter the numeric value of the MIB Object ID (OID) associated with the view you want to delete.

Example: MIB OID name []? 1.3.6.1.4.1.2

10 Press Return.

If you are deleting the last subtree in the view, the subtree and its associated views are deleted, and the SNMP Config> prompt is displayed.

If subtrees other than the one you are deleting are associated with the specified view, only the specified subtree is deleted and the SNMP Config> prompt is displayed. The specified view and all remaining subtrees associated with the view remain intact.

11 Log out of the Telnet session and terminate the connection.