sflow max-packet-size

Configures the maximum flow sample size sent to the sFlow collector.
Syntax
sflow max-packet-size size
no sflow max-packet-size
Command Default

The default maximum flow sample size is 128 bytes.

Parameters
size
Specifies the maximum sFlow packet size, in bytes. For sFlow version 5, the maximum flow sample size is 1300 bytes.
Modes

Global configuration mode

Usage Guidelines

With sFlow version 5, you can specify the maximum size of the flow samples sent to the sFlow collector. If a packet is larger than the specified maximum size, only the contents of the packet up to the specified maximum number of bytes are exported. If the size of the packet is smaller than the specified maximum, the entire packet is exported.

The no form of the command removes the configured value and reverts to the default value.

Examples

The following example sets the maximum flow sample size to 1024.

device(config)# sflow max-packet-size 1024