There are various agents that can send samples to a flow collector.
In the latest versions, Juniper supports sFlow and IPFIX protocols.
Sample configuration:
set protocols sflow collector 10.0.0.1
set protocols sflow collector udp-port 6343
set protocols sflow interface ge-0/0/0
set protocols sflow sample-rate 2048
Sample packets using pcap, iptables nflog and many more. Uses sFlow.
Sample configuration:
sflow {
collector { ip = 10.0.0.1 udpport = 6343 }
pcap { dev = eth0 }
}
Run with
$ hsflowd -d -f hsflowd.conf
Sample packets using pcap, iptables nflog and many more. Uses NetFlow v9 or IPFIX.
Run with
$ nprobe -i eth0 -n 10.0.0.1:2055 -V 10