display snmp-agent mib-view

Function

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

Format

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

Parameters

Parameter Description Value
exclude

Excludes the displayed and configured attributes of an SNMP MIB view.

-

include

Includes the displayed and configured attributes of an SNMP MIB view.

-

viewname view-name

Specifies a view to be displayed.

The value is a string of 1 to 32 case-sensitive characters, spaces not supported.

When quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
snmp read

Usage Guidelines

Usage Scenario

To view the default and configured MIB view, run the display snmp-agent mib-view command.

Prerequisites

The SNMP agent function has been enabled using the snmp-agent command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the existing 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

   View name: ViewDefault
       MIB Subtree: snmpCommunityMIB
       Subtree mask: FE(Hex)
       Storage type: nonVolatile
       View Type: excluded
       View status: active

   View name: ViewDefault
       MIB Subtree: snmpUsmMIB
       Subtree mask: FE(Hex)
       Storage type: nonVolatile
       View Type: excluded
       View status: active

   View name: ViewDefault
       MIB Subtree: snmpVacmMIB
       Subtree mask: FE(Hex)
       Storage type: nonVolatile
       View Type: excluded
       View status: active
Table 1 Description of the display snmp-agent mib-view command output
Item Description
View name

View name.

View Type

Whether access to a MIB object is permitted or denied.

View status

Status of the MIB view.

MIB Subtree

MIB subtree.

Subtree mask

Subtree mask.

Storage type

Standard type of saving a row to memory:

  • other (1).
  • volatile (2): A row is saved to volatile memory. The row will be lost once the device is restarted. If the storage type of a row is set to volatile (2), you cannot change it to permanent (4) or readOnly (5).
  • nonVolatile (3): A row is saved to non-volatile memory, such as Non Volatile Random Access Memory (NVRAM). The row can be restored after the device is restarted. If the storage type of a row is set to nonVolatile (3), you cannot change it to permanent (4) or readOnly (5).
  • permanent (4): A permanent row is saved to non-volatile memory, such as Read-only Memory (ROM). If the storage type of a row is permanent (4), you cannot change it to other storage types.
  • readOnly (5): A read-only row is saved to non-volatile memory, such as ROM. If the storage type of a row is readOnly (5), you cannot change it to other storage types. In addition, you cannot delete the row.

    Only nonVolatile (3) is available.

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