< Home

snmp-agent packet max-size

Function

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.

Format

snmp-agent packet max-size byte-count

undo snmp-agent packet max-size

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Set the maximum SNMP packet that the SNMP agent receives or forwards to 1042 bytes.

<sysname> system-view
[sysname] snmp-agent packet max-size 1042
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >