[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 object
(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: Specifies the maximum size (in bytes) of SNMP packets that the SNMP agent can receive or
send. The value range is 484 to 17940, and the default is 1500.
Description
Use snmp-agent packet max-size to set the maximum size (in bytes) of SNMP packets that the SNMP
agent can receive or send.
Use undo snmp-agent packet max-size to restore the default packet size.
By default, the maximum size of SNMP packets 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. For most networks, the default value is sufficient.
Examples
# Set the maximum SNMP packet size to 1024 bytes.
<Sysname> system-view
[Sysname] snmp-agent packet max-size 1024
snmp-agent packet response dscp
Syntax
snmp-agent packet response dscp dscp-value
undo snmp-agent packet response dscp
View
System view
Default level
3: Manage level
Parameters
dscp-value: Specifies the DSCP value for SNMP responses, which ranges from 0 to 63.
73