Configuration in SONiC from sonic-cli:
sonic-cmd bash
sudo config sflow enable
sudo config sflow collector add collector_1 <NCP-IP-Here>
sudo config sflow interface enable Ethernet0
sudo config sflow agent-id add eth0 >> for agent address (switch managment) reflect with flow data to uniquely identify the source of the flows.
Configuration in Cisco from Cisco-CLI:
configure terminal
feature sflow
sflow agent <MGMT-IP-Here>
sflow collector-ip <NCP-IP-Here> vrf management
sflow data-source interface ethernet 1/1
show sflow
copy running-config startup-config
show sflow statistics
Configuration in Arista from Arista-CLI:
configure terminal
sflow destination <NCP-IP-Here>
sflow source-interface Ethernet19
sflow source <MGMT-IP-Here>
show sflow
copy running-config startup-config
show sflow statistics