-C
Tell sadf
to display comments present in file.
-c
Convert an old system activity binary datafile (version
9.1.6 and later) to current up-to-date format. Use the
following syntax:
sadf -c
old_datafile >
new_datafile
Conversion can be controlled using option -O
(see below).
-d
Print the contents of the data file in a format that can
easily be ingested by a relational database system. The
output consists of fields separated by a semicolon. Each
record contains the hostname of the host where the file
was created, the interval value (or -1 if not applicable),
the timestamp in a form easily acceptable by most
databases, and additional semicolon separated data fields
as specified by sar_options command line options. Note
that timestamp output can be controlled by options -T
, -t
and -U
.
--dev=
dev_list
Specify the block devices for which statistics are to be
displayed by sadf
. dev_list is a list of comma-separated
device names. Useful with option -d
from sar
.
-e [
hh:
mm[:
ss] ]
Set the ending time of the report. The default ending time
is 18:00:00. Hours must be given in 24-hour format.
--fs=
fs_list
Specify the filesystems for which statistics are to be
displayed by sadf
. fs_list is a list of comma-separated
filesystem names or mountpoints. Useful with option -F
from sar
.
-g
Print the contents of the data file in SVG (Scalable
Vector Graphics) format. This option enables you to
display some fancy graphs in your web browser. Use the
following syntax:
sadf -g
your_datafile [ --
sar_options ] >
output.svg
and open the resulting SVG file in your favorite web
browser. Output can be controlled using option -O
(see
below).
-H
Display only the header of the report (when applicable).
If no format has been specified, then the header data
(metadata) of the data file are displayed.
-h
When used in conjunction with option -d
, all activities
will be displayed horizontally on a single line.
--iface=
iface_list
Specify the network interfaces for which statistics are to
be displayed by sadf
. iface_list is a list of comma-
separated interface names. Useful with options -n DEV
and
-n EDEV
from sar
.
-j
Print the contents of the data file in JSON (JavaScript
Object Notation) format. Timestamps can be controlled by
options -T
and -t
.
-l
Export the contents of the data file to a PCP (Performance
Co-Pilot) archive. The name of the archive can be
specified using the keyword pcparchive=
with option -O
.
-O
opts[,...]
Use the specified options to control the output of sadf
.
The following options are used to control SVG output
displayed by sadf -g
:
autoscale
Draw all the graphs of a given view as large as
possible based on current view's scale. To do this,
a factor (10, 100, 1000...) is used to enlarge the
graph drawing. This option may be interesting when
several graphs are drawn on the same view, some
with only very small values, and others with high
ones, the latter making the former hardly visible.
bwcol Use a black and white palette to draw the graphs.
customcol
Use a customizable color palette instead of the
default one to draw the graphs. See environment
variable S_COLORS_PALETTE
below to know how to
customize that palette.
debug Add helpful comments in SVG output file.
height=value
Set SVG canvas height to value.
oneday Display graphs data over a period of 24 hours. Note
that hours are still printed in UTC by default: You
should use option -T
to print them in local time
and get a time window starting from midnight.
packed Group all views from the same activity (and for the
same device) on the same row.
showidle
Also display %idle state in graphs for CPU
statistics.
showinfo
Display additional information (such as the date
and the host name) on each view.
showtoc
Add a table of contents at the beginning of the SVG
output, consisting of links pointing at the first
graph of each activity.
skipempty
Do not display views where all graphs have only
zero values.
The following option may be used when converting an old
system activity binary datafile to current up-to-date
format:
hz=value
Specify the number of ticks per second for the
machine where the old datafile has been created.
The following option may be used when data are exported to
a PCP archive:
pcparchive=name
Specify the name of the PCP archive to create.
The following option is used to control raw output
displayed by sadf -r
:
debug Display additional information, mainly useful for
debugging purpose.
-P {
cpu_list | ALL }
Tell sadf
that processor dependent statistics are to be
reported only for the specified processor or processors.
cpu_list is a list of comma-separated values or range of
values (e.g., 0,2,4-7,12-
). Note that processor 0 is the
first processor, and processor all
is the global average
among all processors. Specifying the ALL
keyword reports
statistics for each individual processor, and globally for
all processors.
-p
Print the contents of the data file in a format that can
easily be handled by pattern processing commands like awk
.
The output consists of fields separated by a tab. Each
record contains the hostname of the host where the file
was created, the interval value (or -1 if not applicable),
the timestamp, the device name (or - if not applicable),
the field name and its value. Note that timestamp output
can be controlled by options -T
, -t
and -U
.
-r
Print the raw contents of the data file. With this format,
the values for all the counters are displayed as read from
the kernel, which means e.g., that no average values are
calculated over the elapsed time interval. Output can be
controlled using option -O
(see above).
-s [
hh:
mm[:
ss] ]
Set the starting time of the data, causing the sadf
command to extract records time-tagged at, or following,
the time specified. The default starting time is 08:00:00.
Hours must be given in 24-hour format.
-T
Display timestamp in local time instead of UTC
(Coordinated Universal Time).
-t
Display timestamp in the original local time of the data
file creator instead of UTC (Coordinated Universal Time).
-U
Display timestamp (UTC - Coordinated Universal Time) in
seconds from the epoch.
-V
Print version number then exit.
-x
Print the contents of the data file in XML format.
Timestamps can be controlled by options -T
and -t
. The
corresponding DTD (Document Type Definition) and XML
Schema are included in the sysstat source package. They
are also available at http://pagesperso-
orange.fr/sebastien.godard/download.html.