Configuring Flow Exports on Arista switches
For network traffic analysis, you need to configure your devices to export flows to Site24x7 On-Premise Poller, which is the sFlow collector. The On-Premise Poller will be listening to a particular port to receive flows. Learn how to find the port number of your On-Premise Poller.
To enable sFlow in Arista switches:
- Connect to the Arista switch by using SSH or Telnet.
- To enter enable or privilege mode, type enable and provide the appropriate password if needed.
- To enable sFlow on your Arista switch, including all the interfaces, execute the below commands in sequence:
sflow run
sflow destination {NetFlow server IP address}
sflow source {IP address}
sflow polling-interval 60
sflow sample {Sample rate}NotePacket sampling occurs at regular intervals (denoted by Sample rate in the above command) to prevent inaccurate sampling. For example, a sample rate of 12,345 indicates one sample is taken for every 12,345 packets. The default value is 1,048,576. - To verify the sFlow configuration, execute the below commands on the device terminal:
show sflow
show sflow interfaces
Here's Arista's official documentation on configuring sFlow exports on Arista devices.