R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101

59
Be cautious with deleting the default MIB view. The operation blocks access to any MIB object on the
device from NMSs that use the default view.
Related commands: snmp-agent group.
Examples
# Include the mib-2 (OID 1.3.6.1) subtree in the mibtest view, exclude the ip subtree from the mibtest view.
<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
An SNMPv1 NMS in the public community can query the objects in the mib-2 subtree, but not any
objects (for example, the ipForwarding or ipDefaultTTL node) in the ip 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 number of bytes of an SNMP packet that can be received or sent by an agent,
which ranges from 484 to 17,940 and defaults to 1,500 bytes.
Description
Use the snmp-agent packet max-size command to set the maximum size (in bytes) of SNMP packets that
the SNMP agent can receive or send.
Use the undo snmp-agent packet max-size command to restore the default packet size.
By default, the maximum size of SNMP packets that the SNMP agent can receive or send is 1500 bytes.
If any device on the path to the NMS does not support packet fragmentation, limit the SNMP packet size
to prevent large-sized packets from being discarded. In any other cases, the default value is sufficient.
Examples
# Set the maximum size of SNMP packets that the SNMP agent can receive or send to 1,042 bytes.
<Sysname> system-view
[Sysname] snmp-agent packet max-size 1042
snmp-agent sys-info
Syntax
snmp-agent sys-info { contact sys-contact | location sys-location | version { all | { v1 | v2c | v3 }* } }
undo snmp-agent sys-info { contact | location | version { all | { v1 | v2c | v3 }* } }