Linux "sadf" Command Line Options and Examples
Display data collected by sar in multiple formats.

The sadf command is used for displaying the contents of data files created by the sar(1) command. But unlike sar, sadf can write its data in many different formats (CSV, XML, etc.) The default format is one that can easily be handled by pattern processing commands like awk (see option -p).


Usage:

sadf [ -C ] [ -c | -d | -g | -j | -p | -r | -x ] [ -H ] [ -h ] [ -T | -t | -U ] [ -V ] [ -O opts [,...] ] [ -P
{ cpu_list | ALL } ] [ -s [ hh:mm[:ss] ] ] [ -e [ hh:mm[:ss] ] ] [ -- sar_options ] [ interval [ count ] ] [
datafile | -[0-9]+ ]






Command Line Options:

-C
Tell sadf to display comments present in file.
sadf -C ...
-e
Set the ending time of the report, given in local time. The default ending time is 18:00:00. Hours mustbe given in 24-hour format.
sadf -e ...
-O
Use the specified options to control the output of sadf. The following options are used to control SVGoutput displayed by sadf -g:autoscaleDraw all the graphs of a given view as large as possible based on current view's scale. To dothis, a factor (10, 100, 1000...) is used to enlarge the graph drawing. This option may beinteresting 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.height=valueSet SVG canvas height to value.onedayDisplay graphs data over a period of 24 hours. Note that hours are still printed in UTC bydefault: You should use option -T to print them in local time and get a time window startingfrom midnight.packedGroup all views from the same activity (and for the same device) on the same row.showidleAlso display %idle state in graphs for CPU statistics.showinfoDisplay additional information (such as the date and the host name) on each view.skipemptyDo not display views where all graphs have only zero values.The following option is used to control raw output displayed by sadf -r:showhintsDisplay additional noteworthy information, such as e.g., a monotonic counter value which hasdecreased.
sadf -O ...
-P
Tell sadf that processor dependent statistics are to be reported only for the specified processor orprocessors. cpu_list is a list of comma-separated values or range of values (e.g., 0,2,4-7,12-). Notethat 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 pro‐cessors.
sadf -P ...
-s
Set the starting time of the data (given in local time), causing the sadf command to extract recordstime-tagged at, or following, the time specified. The default starting time is 08:00:00. Hours must begiven in 24-hour format.
sadf -s ...
-T
Display timestamp in local time instead of UTC (Coordinated Universal Time).
sadf -T ...
-U
Display timestamp (UTC - Coordinated Universal Time) in seconds from the epoch.
sadf -U ...
-V
Print version number then exit.
sadf -V ...