No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
snmp-agent mib-view

snmp-agent mib-view

Function

The snmp-agent mib-view command creates or updates a MIB view.

The undo snmp-agent mib-view command cancels the configuration of the current MIB view.

By default, the MIB view name is ViewDefault, and the MIB subtree includes all internet subnodes except for snmpVacmMIB and snmpUsmMIB.

Format

snmp-agent mib-view view-name { exclude | include } subtree-name [ mask mask ]

undo snmp-agent mib-view view-name [ subtree-name ]

Parameters

Parameter Description Value
view-name Specifies the MIB view name. The value is a string of 1 to 32 characters.
exclude Excludes the MIB subtree. -
include Includes the MIB subtree. -
subtree-name Specifies the name of the subtree, which identifies a subtree uniquely. The name is a string of 1 to 128 characters.
mask Indicates the subtree mask, which specifies the access range of the view. -
mask Specifies the value of the subtree mask. This parameter specifies the mode and length of the matching between the user operation node and the subtree included by the view. The value is a hexadecimal string of 1 to 32 characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

A MIB view is an abstract set of all managed objects. The NMS manages the device by reading and writing the managed objects in the MIB. A MIB view defines management information included and excluded in this MIB view.

If you forget which information you have configured for a MIB view, you can run the display snmp-agent mib-view command to check it.

Precautions

If both the include and exclude parameters are configured for MIB objects that have an inclusion relationship, whether to include or exclude the lowest MIB object will be determined by the parameter configured for the lowest MIB object. For example, the snmpV2, snmpModules, and snmpUsmMIB objects are from top down in the MIB table. If the exclude parameter is configured for snmpUsmMIB objects and include is configured for snmpV2, snmpUsmMIB objects will still be excluded.

When using the snmp-agent mib-view command, note the following:
  • A view name uniquely identifies a view. Configuring the same view name repeatedly is equivalent to adding the subtree to the view. The system displays prompt information when a subtree is overwritten due to the repeated subtree configuration. The default view cannot be deleted.
  • The system checks the subtree name. The configured subtree must be the one existing in the MIB tree. The subtree name is configurable.
  • The rule of smallest range is adopted for the access rights of the leaf node. That is, the MIB subtree configured with the include/exclude rights at the most internal layer determines the authority of the leaves inside the subtree.
  • Only an existing view can be deleted regardless of whether the view is referenced or not.
  • A leaf node of the MIB tree defines the managed object of the device, such as the routing table. The leaf node with a unique value is called a scalar, and the leaf node with multiple values is called a variable.
An input mask must meet the following requirements:
  • The mask is a hexadecimal string.
  • The bit converted to 1 (a binary number) indicates that the subtree matches the corresponding sub IDs exactly. The bit converted to 0 (a binary number) indicates that the subtree matches the sub IDs universally.
  • After the mask is converted to a binary string, the length of the string should not less than the number of the sub IDs of the subtree. In addition, 0 must exist before 1.
  • A view record without a mask indicates that the view matches the subtrees completely.

Example

# Configure MIB view a1 that includes the internet subtree.

<Huawei> system-view
[Huawei] snmp-agent mib-view a1 include internet
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 195671

Downloads: 118

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next