For further reading: sFlow.org – the official standard.
configure terminal sflow collector <collector-ip> port 6343 sflow polling-interval 20 sflow sampling-rate 1000 interface ethernet 1/1 sflow enable sflow capture tool
| Tool | Description | |------|-------------| | | Turns sFlow into NetFlow | | pmacct | Lightweight, stores in SQL/Redis | | ElastiFlow | Integrates with Elasticsearch + Kibana | | sflowtool | Command-line decoder (debugging) | For further reading: sFlow
EOF sudo systemctl restart hsflowd Popular open-source collectors: sflow capture tool
set protocols sflow collector <collector-ip> udp-port 6343 set protocols sflow sampling-rate 1000 set protocols sflow interfaces ge-0/0/0
# Install Host sFlow agent sudo apt install hsflowd # Debian/Ubuntu sudo yum install hsflowd # RHEL/CentOS sudo tee /etc/hsflowd.conf <<EOF sflow collector ip = 192.168.1.100 samplingRate = 1000 pollingInterval = 20