R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

150
mask mask-value: Mask for a MIB subtree, 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, four MIB views are created on the device, and they have the same view name ViewDefault.
The first MIB view contains the MIB subtree iso, the second one does not contain the MIB subtree
snmpUsmMIB, the third one does not contain the MIB subtree snmpVacmMIB, and the fourth one does
not contain MIB subtree snmpModules.18.
A MIB view is a subset of MIB and is uniquely identified by its view name and the MIB subtree together.
MIB views with the same view name but containing different subtrees are considered different views.
Except default MIB views, you can create at most 16 MIB views.
You can use the display snmp-agent mib-view command to view the default views. When the NMS
accesses the device through the default view, it can access all the MIB objects of the iso subtree except
for the MIB objects under the snmpUsmMIB, snmpVacmMIB, and snmpModules.18 subtrees. 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 the agent unless you configure another view manually.
Related commands: snmp-agent group.
Examples
# Create two MIB views with the same name mibtest, one of them includes all objects of the subtree
mib-2, and the other excludes all objects of the subtree ip.
<Sysname> system-view
[Sysname] snmp-agent mib-view included mibtest 1.3.6.1
[Sysname] snmp-agent mib-view excluded mibtest ip
[Sysname] snmp-agent community read public mib-view mibtest
After the above configuration, if the SNMP version on the NMS is set to SNMPv1, when the NMS uses
the community name public to access the device, it cannot query all objects of the ip subtree (such as the
ipForwarding node, the ipDefaultTTL node, and so on), but it can query all objects of the mib-2 subtree.
snmp-agent packet max-size
Syntax
snmp-agent packet max-size byte-count
undo snmp-agent packet max-size
View
System view
Default level
3: Manage level
Parameters
byte-count: Maximum size of the SNMP packets that can be received or sent by the agent, in the range
484 to 17,940.