Command Manual – SNMP-RMON
H3C S7500E Series Ethernet Switches
Chapter 1 SNMP Configuration Commands
1-16
Examples
# Enable logging of SNMP GET operation.
<Sysname> system-view
[Sysname] snmp-agent log get-operation
# Enable logging of SNMP SET operation.
<Sysname> system-view
[Sysname] snmp-agent log set-operation
1.1.16 snmp-agent mib-view
Syntax
snmp-agent mib-view
{
excluded
|
included
}
view-name oid-tree
[
mask
mask-value
]
undo snmp-agent mib-view
view-name
View
System view
Parameters
excluded
: Indicates that not all nodes of the MIB tree are included in current view.
included
: Indicates that all nodes of the MIB tree are included in current view.
view-name
: View name, a string of 1 to 32 characters.
oid-tree
: MIB subtree. It can only be an OID string, such as 1.4.5.3.1, or an object name
string, such as “system”. OID is made up of a series of integers, which marks the
position of the node in the MIB tree and uniquely identifies a MIB object.
mask
mask-value
: Mask for an object tree, in the range 1 to 32 hexadecimal digits. It
must be an even digit.
Description
Use the
snmp-agent mib-view
command to create or update MIB view information so
that MIB objects can be specified.
Use the
undo snmp-agent mib-view
command to delete the current configuration.
By default, MIB view name is ViewDefault.
You can use the
display snmp-agent mib-view
command to view the access right of
the default view. Also, you can use the
undo snmp-agent mib-view
command to
remove the default view, after that, however, you may not be able to read or write all
MIB nodes on Agent.
Related commands:
snmp-agent group
.