Closed robobeaver6 closed 3 years ago
Thanks for the report. May I ask you to pcap a few 1000 packets to the sflow collector and send me this pcap off list? You find my email in the AUTHORS file.
Please make sure you have no firewall, or SElinux rules active.
I have just discovered that if I turn off hardware acceleration on the switch nfsen starts processing the packets. Literally the only thing that changes on the switch config is no sflow hardware acceleration
. I am in the process of capturing another set of pcaps to send you to compare.
It looks like as the HW acceleration sflow stream only contains counter samples and no flow samples. Counter samples are discarded from sfcapd, as they are not relevant. Maybe you can convince the Arista to send flow samples as well in HW acceleration mode. There was recently a different issue with Arista - see #283. Maybe @lisaens could help here. If you agree, I consider this case closed.
Sorry, we aren't using hardware acceleration and I have no knowledge of it, so I have nothing to contribute.
sfcapd Version: 1.6.18 nfsen Version: 1.3.8 $Id: nfsen 71 2017-01-19 16:16:21Z peter $ Running on Centos 7 kernel 3.10.0-1062.1.1.el7.x86_64
I have nfsen working with netflow, and am attempting to add a couple of arista DCS-7280SR2K-48C6-M-R switches running EOS 4.25.4M that do hardware accelerated sflow. I have added them to the %sources in the nfsen.conf
I then run
nfsen reconfig
successfully.I restart nfsen, the new hosts show up and I have files being created in the profiles-data directory with a length of 276B. I do not have any firewall running and I can confirm I can see the sflow v5 data coming from the switch using tshark. I can also see that the sfcapd process is listening:
I can confirm the process is receiving the packets by running
strace -p 122944
, which shows arecvfrom()
for each packet. When it rotates the files every 5 min, I see it stat, rename, open and write no problem. It just doesn't seem to write anything other than the default empty file info.If I run the sfcaptd process in the console with -E it just seems to sit there
The file size doesn't change from 276B, all of the files in the profiles-data/live/switch1/2021/08/17/ folders are 276B for the hosts using sflow. Netflow works fine. Host names and IP addresses have been replaced to protect the innocent.