The snmp-agent packet max-size command sets the maximum size of an SNMP message.
The undo snmp-agent packet max-size command restores the default setting.
By default, the maximum size of an SNMP message is 12000 bytes.
Parameter | Description | Value |
---|---|---|
byte-count | Specifies the maximum size of an SNMP message that the SNMP agent can receive and send. | The value is an integer that ranges from 484 to 17940, in bytes. The default value is 12000. |
Usage Scenario
You are recommended to run the snmp-agent packet max-size command to set the maximum size of an SNMP message that the SNMP agent receives or sends according to the network condition.
By increasing the maximum size of an SNMP message, you can prevent the NMS from obtaining the incomplete information about the device status.
By decreasing the maximum size of an SNMP message, you can prevent the NMS or device from discarding an SNMP message because its size exceeds the processing capability of the NMS or device.
Precautions
You need to increase the size of an SNMP message according to the network condition. Otherwise, the transmission efficiency of SNMP messages is affected.
Generally, the default value is recommended.
The maximum size set through the snmp-agent packet max-size command takes effect for the SNMP messages of all SNMP versions.