sadc
Manual Reference Pages - SADC (8)
NAME
sadc - System activity data collector.
CONTENTS
Synopsis
Description
Options
Environment
Examples
Bugs
Files
Author
See Also
SYNOPSIS
/usr/lib/sa/sadc [ -d ] [ -F ] [ -I ] [ -L ] [ -V ] [ interval [ count ] ] [ outfile ]
DESCRIPTION
The sadc command samples system data a specified number of times ( count ) at a specified interval measured in seconds ( interval ). It writes in binary format to the specified outfile or to the standard output. If outfile is set to -, then sadc uses the standard system activity daily data file, the /var/log/sa/sadd file, where the dd parameter indicates the current day. By default sadc collects all the data available from the kernel. Exceptions are interrupts and disks data, for which the relevant options must be explicitly passed to sadc (see options below).
When the count parameter is not specified, sadc writes its data endlessly. When both interval and count are not specified, a dummy record, which is used at system startup to mark the time when the counter restarts from 0, will be written. For example, one of the system startup script may write the restart mark to the daily data file by the command entry:
/usr/lib/sa/sadc -
The sadc command is intended to be used as a backend to the sar command.
Note: The sadc command only reports on local activities.
OPTIONS
ENVIRONMENT
The sadc command takes into account the following environment variable:
EXAMPLES
/usr/lib/sa/sadc 1 10 /tmp/datafile
Write 10 records of one second intervals to the /tmp/datafile binary file.
BUGS
/proc filesystem must be mounted for the sadc command to work.
All the statistics are not necessarily available, depending on the kernel version used.
FILES
/var/log/sa/sadd
Indicate the daily data file, where the dd parameter is a number representing the day of the month.
/proc contains various files with system statistics.
AUTHOR
Sebastien Godard (sysstat <at> wanadoo.fr)
SEE ALSO
sar(1), sa1(8), sa2(8), sadf(1), mpstat(1), iostat(1), vmstat(8)
http://perso.orange.fr/sebastien.godard/
Improve this page