set sflow receiver maxdatagram
37-8 sFlow Configuration
Parameters
Defaults
None.
Mode
Switch command, read-write.
Usage
In order for an sFlow Collector to be assigned to receive sample datagrams from the sFlow Agent
on the switch, an entry for that Collector must be configured in the switch’s sFlow Receivers Table.
An entry must contain an owner identity string, a non-zero timeout value, and the IP address of
the Collector. Configure the owner identity string and timeout value with the set sflow receiver
owner command.
Example
This example configures an IP address of 10.10.10.10 to index entry 1.
C3(su)->set sflow receiver 1 ip 10.10.10.10
set sflow receiver maxdatagram
Use this command to set the maximum number of data bytes that can be sent in a single sample
datagram.
Syntax
set sflow receiver index maxdatagram bytes
Parameters
Defaults
Default maximum datagram size is 1400 bytes.
Mode
Switch command, read-write.
index Index number in the sFlow Receivers Table for the receiver/Collector
being configured. The index can range from 1 to 8.
ip ipaddr The IP address of the receiver/Collector being configured.
index Index number in the sFlow Receivers Table for the receiver/Collector
being configured. The index can range from 1 to 8.
maxdatagram bytes Specifies the maximum number of data bytes that can be sent in a single
sample datagram. This size should be set to avoid fragmentation of the
sFlow datagrams.
The value of bytes can range from 200 to 9116. The default is 1400.