< Home

display snmp-agent mib-view

Function

The display snmp-agent mib-view command displays the current MIB view.

Format

display snmp-agent mib-view [ exclude | include | viewname view-name ]

Parameters

Parameter Description Value
exclude Displays all MIB views that have excluded MIB subtrees configured. -
include Displays all MIB views that have included MIB subtrees configured. -
viewname view-name Displays a specified MIB view.

The value is a string of 1 to 32 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The snmp-agent mib-view command creates or updates a MIB view. To check the current MIB view, you can run the display snmp-agent mib-view command.

Precautions

The snmp-agent command has been run to enable the SNMP Agent. Otherwise, an error message is displayed.

Example

# Display the current MIB view.

<HUAWEI> display snmp-agent mib-view
   View name:ViewDefault
       MIB Subtree:internet
       Subtree mask:F0(Hex)
       Storage-type: nonVolatile
       View Type:included
       View status:active
Table 1 Description of the display snmp-agent mib-view command output

Item

Description

View name

MIB view name.

You can run the snmp-agent mib-view command to configure this parameter.

MIB Subtree

MIB subtree.

You can run the snmp-agent mib-view command to configure this parameter.

Subtree mask

MIB subtree mask.

Storage type

Mode in which information is stored. Only nonVolatile is supported currently. In this mode, configuration can be restored after the device restarts.

View Type

Whether the MIB subtree can be accessed by a MIB view:

  • included: The MIB subtree can be accessed by a MIB view.
  • excluded: The MIB subtree cannot be accessed by a MIB view.

You can run the snmp-agent mib-view command to configure this parameter.

View status

Indicates the status of the MIB view.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >