The snmp-agent mib-view command creates or updates a MIB view.
The undo snmp-agent mib-view command restores the default information about a view.
By default, the view name is ViewDefault and the MIB subtrees are internet, snmpVacmMIB, snmpUsmMIB and snmpCommunityMIB.
Parameter | Description | Value |
---|---|---|
type |
Type of operation. |
|
view-name |
Specifies the view name. |
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. |
oid-tree |
Specifies the OID for the MIB subtree. oid-tree can be the OID (such as 1.4.5.3.1) or the name (such as system) of the subtree. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
Usage Scenario
Most SNMP configuration commands contain the parameter . The snmp-agent mib-view command is used to create or update a view. You cannot modify or delete the default ViewDefault MIB view.
In the
snmp-agent mib-view command, the
parameter can be displayed as an OID or an object name.
To uniquely identify object identifiers in SNMP messages, SNMP uses a hierarchical naming structure to distinguish object identifiers from one another. This is a tree-shaped structure, with the nodes (such as {1.3.6.1.2.1}) representing object identifiers. The MIB is a collection of standard variables on monitored network devices.
Precautions
If a MIB view is referenced by a community name or SNMP group, the view can be deleted using the undo snmp-agent mib-view command only after you delete the view reference relationship.