sar (Unix)

sar (Unix)

In computing, sar is a Solaris-derived system monitor command used to report on various system loads, including CPU activity, memory/paging, device load, network. Linux distributions provide sar through the sysstat package.

Contents

Syntax

sar [-flags] [ -e time ] [ -f filename ] [-i sec ] [ -s time ]
-f filename Uses filename as the data source for sar . Default is the current daily data file /var/adm/sa/sadd.
-e time Selects data up to time . Default is 18:00.
-i sec Selects data at intervals as close as possible to sec seconds.

Example

user@localhost:$ sar

Displays today's CPU activity so far. You must have permission and the information must be present on the computer.

To add hourly and average CPU usage to a logfile: echo "SAR on the 1/2 hour and average CPU" >> $LOGFILE sar | head -4 | tail -1 >> $LOGFILE sar | tail -3 >> $LOGFILE

See also

  • sag - "system activity graph" command[1]

References

Footnotes

  1. ^ "sag(1)" (PDF). SUNOS Reference Manual. Mountain View, California: Sun Microsystems. 1993-02-24. pp. 1231. https://www.filibeto.org/sun/lib/solaris2.5-docs/40.3/802-1930-01.pdf. Retrieved 2010-05-04. "sag - system activity graph [...] DESCRIPTION sag graphically displays the system activity data stored in a binary data file by a previous sar(1) run." 

Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • SAR — or Sar may refer to: Contents 1 Organizations 2 Railways 3 Science and technology …   Wikipedia

  • SAR — steht für: SAR (Mesopotamien), eine mesopotamische Wertbezeichnung Sar (Assyrien), Herrschertitel, das Wort für ‚König‘ SAR steht als Kürzel für: SAR Elektronic (Steuerung, Automation, Regeltechnik), ein Unternehmen für Industrie und… …   Deutsch Wikipedia

  • Interferometric synthetic aperture radar — Interferometric synthetic aperture radar, also abbreviated InSAR or IfSAR, is a radar technique used in geodesy and remote sensing. This geodetic method uses two or more synthetic aperture radar (SAR) images to generate maps of surface… …   Wikipedia

  • Список расширений имени файла/S — / * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Примечание: Поскольку расширение имени файла может быть любым, представленный список не является полным …   Википедия

  • Liste der Dateiendungen/S — In dieser Liste sind übliche Dateinamenserweiterungen aufgelistet, die in einigen Betriebssystemen (wie zum Beispiel Microsoft Windows) zur Unterscheidung von Dateiformaten verwendet werden. In anderen Betriebssystemen erfolgt die… …   Deutsch Wikipedia

  • Comparison of web browsers — September 2011, web browser usage share. Source: Median values from summary table …   Wikipedia

  • Julian day — JDN redirects here. For the military IT system, see Joint Data Network. For the comic book character Julian Gregory Day, see Calendar Man. Not to be confused with Julian year (disambiguation). Julian day is used in the Julian date (JD) system of… …   Wikipedia

  • GSAR — may refer to one of the following:* Global(ly) Search And Replace: (in computing) SAR has long meant the initialism Search And Replace [http://dept.seattlecolleges.com/ssccwrite/pickups/gloss 1.htm] , the process of searching for a word or string …   Wikipedia

  • 1970 — This article is about the year 1970. Millennium: 2nd millennium Centuries: 19th century – 20th century – 21st century Decades: 1940s  1950s  1960s  – 1970s –  1980s   …   Wikipedia

  • Signals intelligence — SIGINT redirects here. For the UNIX signal, see SIGINT (POSIX). RAF Menwith Hill, a large site in the United Kingdom, part of ECHELON and the UK USA Security Agreement. Signals intelligence (often contracted to SIGINT) is intelligence gathering… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”