SFCAPD(1) | General Commands Manual | SFCAPD(1) |
sfcapd
— sflow
collector for sflow version v2/v4 and v5
sfcapd |
-w flowdir
[-C config]
[-z ] [-y ]
[-j ] [-D ]
[-u userid]
[-g groupid]
[-S num]
[-t interval]
[-P pidfile]
[-p port]
[-I ident]
[-b bindhost]
[-4 ] [-6 ]
[-j mcastgroup]
[-R repeater]
[-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 formated 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-b
bindhost-4
sfcapd
to listen on IPv4 addresses only.
Can be used together with -b if a hostname has IPv4 and IPv6
addresses.-6
sfcapd
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]-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
-y
-j
-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 bevore 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.-V
sfcapd
version and exit.-h
sfcapd
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.
June 19, 2024 | Debian |