| SFCAPD(1) | General Commands Manual | SFCAPD(1) |
sfcapd — sflow
collector for sflow version v2/v4 and v5
sfcapd |
-w flowdir
[-C config]
[-z=<compress>] [-D]
[-u userid]
[-g groupid]
[-S num]
[-t interval]
[-P pidfile]
[-p port]
[-d device]
[-I ident]
[-b bindhost]
[-f flowfile]
[-4] [-6]
[-j mcastgroup]
[-R repeater]
[-A] [-B
buffsize] [-n
sourceparam] [-M
multiflowdir] [-i
metricrate] [-m
metricpath] [-e]
[-x command]
[-E] [-v]
[-V] |
sfcapd reads sflow data from the network
and stores the records into binary formatted files. The sflow implementation
is based of sflowtool. The packet samples are converted into netflow
compatible records.
If you want to collect netflow data, please have a look at nfcapd which is also part of the nfdump tools.
Sflow is an industry standard developed by InMon Corporation. For more information see http://sflow.org.
sfcapd is the twin of
nfcapd and supports the same feature set. See also
nfcapd(1) for more details.
The options are as follows:
-w
flowdir-S the final directory is
concatenated to flowdir/subdir.-C
configsfcapd tries to
read the config file from the install default path
$prefix/etc/ which may be overwritten by the
environment variable NFCONF , which again is
overwritten by this option -C. If
-C none is specified, then
no config file is read, even if found in the search path.-p
portnum-d
interface-b
bindhost-4sfcapd to listen on IPv4 addresses only.
Can be used together with -b if a hostname has IPv4 and IPv6
addresses.-6sfcapd to listen on IPv6 addresses only.
Can be used together with -b if a hostname has IPv4 and IPv6
addresses.-J
mcastgroup-R
host[/port]-Asfcapd to be started with root privileges. Please
note, that source spoofing may be blocked by firewalls or routers in your
network.-I
ident-n below.-n
ident,IP,flowdir-n options. All exporters
send the flows to the same port -p. Do not mix
single source configuration -I with multiple
-n options.-M
flowdir-D Set daemon mode: fork to
background and detach from terminal. sfcapd
terminates on signal TERM, INT or HUP.-P
pidfilesfcapd in start/stop
files.-u
useridsfcapd needs to be started as user root.-g
groupidsfcapd needs to be started as user root.-B
bufflen-S
num-t
interval-z=lzo-z=lz4-z=bz2-e-t sfcapd runs an expire
cycle to delete files according to max lifetime and max filesize as
defined by nfexpire(1)-x
command-t interval and after the file
rotate has completed, sfcapd runs the command
command. The string for
command may contain the following place holders,
which are expanded before running:
-I-m
metricpath-i This option may by used to export flow metric
information to other systems such as InfluxDB or Prometheus. Please note:
The flow metric does not include the full record. Only the flow statistics
is sent.-i
metricrate-v-E-o raw This option is for
debugging purpose only, to verify if incoming netflow data is processed
correctly.-Vsfcapd version and exit.-hsfcapd returns 0 on success and 255 if
initialization failed.
http://sflow.org
https://sflow.org/developers/licensing.php
https://github.com/sflow/sflowtool
No software without bugs! Please report any bugs back to me.
| January 31, 2025 | Debian |