Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Platform support  





2 Syntax  





3 Example  





4 Sysstat package  





5 See also  





6 References  





7 Footnotes  














sar (Unix)






Svenska
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikiversity
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


sar
Stable release

sysstat 12.1.1[1] / October 13, 2018; 5 years ago (2018-10-13)

Preview release

sysstat 11.7.4 / June 1, 2018; 6 years ago (2018-06-01) [2]

Repositorygithub.com/sysstat/sysstat/
Written inC
Operating systemAIX, Linux, Solaris, HP-UX
TypeSystem reporting
Websitesebastien.godard.pagesperso-orange.fr//
Called regularly by cron, sadc does the monitoring and stores its measurements to files in the /var/log/sa/ folder. The sar client can be used to explore this data.

System Activity Report (sar) is a Unix System V-derived system monitor command used to report on various system loads, including CPU activity, memory/paging, interrupts, device load, network and swap space utilization. Sar uses /proc filesystem for gathering information.[3]

Platform support[edit]

Sar was originally developed for the Unix System V operating system; it is available in AIX, HP-UX, Solaris and other System V based operating systems but it is not available for macOS or FreeBSD. Prior to 2013 there was a bsdsar tool, but it is now deprecated.[4]

Most Linux distributions provide sar utility through the sysstat package.

Syntax[edit]

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

Example[edit]

[user@localhost]$ sar  # Displays current CPU activity.

Sysstat package[edit]

Additional to sar command, Linux sysstat package in Debian,[5] RedHat Enterprise Linux and SuSE provides additional reporting tools:

See also[edit]

References[edit]

Footnotes[edit]

  1. ^ "Release v12.1.1: Sysstat-12.1.1 · sysstat/Sysstat". GitHub.
  • ^ "SYSSTAT". sebastien.godard.pagesperso-orange.fr.
  • ^ "SYSSTAT". sebastien.godard.pagesperso-orange.fr.
  • ^ "FreshPorts -- sysutils/bsdsar: System Activity Reporter for FreeBSD". www.freshports.org.
  • ^ "Debian -- Details of package sysstat in sid". packages.debian.org.
  • ^ "sag(1)" (PDF). SUNOS Reference Manual. Mountain View, California: Sun Microsystems. 1993-02-24. pp. 1–895. 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.

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Sar_(Unix)&oldid=1231338570"

    Categories: 
    Job scheduling
    Computer performance
    System administration
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Wikipedia articles with style issues from July 2023
    All articles with style issues
     



    This page was last edited on 27 June 2024, at 20:05 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki