The snmp-agent packet max-size command sets the maximum SNMP packets that the SNMP agent receives and forwards.
The undo snmp-agent packet max-size command cancels the current setting.
| Parameter | Description | Value |
|---|---|---|
| byte-count | Specifies the maximum length of the SNMP packet that the SNMP agent receives and sends. | The value ranges from 484 to 17940, in bytes. The default value is 12000 bytes. |
By default, the maximum length of the SNMP packet that the SNMP agent receives and sends is 12000 bytes.
Usage Scenario
If a host that does not support packet fragmentation exists on a network, oversized SNMP packets are discarded. To solve this problem, run the snmp-agent packet max-size to set the maximum length of the SNMP packet that the SNMP agent can receive and send.