HOME

TheInfoList



OR:

System Activity Report (sar) is a
Unix System V Unix System V (pronounced: "System Five") is one of the first commercial versions of the Unix operating system. It was originally developed by AT&T and first released in 1983. Four major versions of System V were released, numbered 1, 2, 3, an ...
-derived
system monitor A system monitor is a Computer hardware, hardware or software component used to monitor system resources and performance in a computer system. Among the management issues regarding use of system monitoring tools are resource usage and privacy. ...
command used to report on various system loads, including CPU activity, memory/paging, interrupts, device load, network and
swap space In computer operating systems, memory paging is a memory management scheme by which a computer stores and retrieves data from secondary storage for use in main memory. In this scheme, the operating system retrieves data from secondary storage ...
utilization. Sar uses /
proc Proc may refer to: * Proč, a village in eastern Slovakia * '' Proč?'', a 1987 Czech film * procfs or proc filesystem, a special file system (typically mounted to ) in Unix-like operating systems for accessing process information * Protein C (PR ...
filesystem for gathering information.


Platform support

Sar was originally developed for Solaris operating system and it is available in Linux, Solaris, AIX, HP-UX, but it is not available for macOS or FreeBSD. Prior to 2013 there was a bsdsar tool, but it is now deprecated.
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, which ...
distributions, such as Debian, Red Hat Enterprise Linux, SuSe and Ubuntu provide sar utility through the sysstat package.


Syntax

sar
flags A flag is a piece of textile, fabric (most often rectangular or quadrilateral) with a distinctive design and colours. It is used as a symbol, a signalling device, or for decoration. The term ''flag'' is also used to refer to the graphic desi ...
-e time -f filename
i sec I, or i, is the ninth Letter (alphabet), letter and the third vowel letter of the Latin alphabet, used in the English alphabet, modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in Engl ...
-s time -s or -es may be: *an ending used to form the regular English plural *an ending used to form the third-person singular present indicative of English verbs *a plural or other inflectional ending in certain other languages; see French grammar, Germ ...
; : filename Uses filename as the data source for sar. The default is the current daily data file /var/adm/sa/sadd. ; : time Selects data up to time. The default is 18:00. ; : sec Selects data at intervals as close as possible to sec seconds.


Example

ser@localhost sar # Displays current CPU activity.


Sysstat package

Additional to sar command, Linux
sysstat sysstat (''system statistics'') is a collection of performance monitoring tools for Linux. It is available on Unix and Unix-like operating systems. Software included in sysstat package: * sar Collect, report, or save system activity informat ...
package in Debian, RedHat Enterprise Linux and SuSE provides additional reporting tools: * * * * * * * * *


See also

* atopsar *
Nmon nmon (''Nigel's Monitor'') is a computer performance system monitor tool for the AIX and Linux operating systems. The nmon tool has two modes a) displays the performance stats on-screen in a condensed format or b) the same stats are saved to a co ...
*
sag SAG, SAg, or sag may refer to: Land formations * Sag (geology), or ''trough'', a depressed, persistent, low area * Sag pond, a body of water collected in the lowest parts of a depression People * Ivan Sag (1949–2013), American linguist ...
- "system activity graph" command *
ksar Ksar or qsar (Maghrebi Arabic: wiktionary:قصر, قصر ''qṣer'' or ڭصر ''gser'', plural ''qṣur''; Berber language, Berber: ⵉⴴⵔⵎ ''aghrem'' or ''ighrem'', plural: ''igherman''), plural ksars, qsars, ksour or qsour, is the Nor ...
- BSD licensed Java-based application to create graph of all parameters from the data collected by Unix sar utilities. *
CURT Kurt is a male given name of Germanic or Turkish origin. ''Kurt'' or ''Curt'' originated as short forms of the Germanic Conrad, depending on geographical usage, with meanings including counselor or advisor. In Turkish, Kurt means "Wolf" and i ...
,
IBM AIX AIX (Advanced Interactive eXecutive, pronounced , "ay-eye-ex") is a series of Proprietary software, proprietary Unix operating systems developed and sold by IBM for several of its computer platforms. Background Originally released for the ...
CPU Usage Reporting Tool * isag, tcl based command to plot sar/sysstat data


References

*
Easy system monitoring with SAR (IBM developerWorks)System Activity Reporter (Softpanorama)


Footnotes

{{reflist Job scheduling Computer performance System administration