# phpman > man > sa2(8)

[SA2(8)](https://www.chedong.com/phpMan.php/man/SA2/8/markdown)                                   Linux User's Manual                                  [SA2(8)](https://www.chedong.com/phpMan.php/man/SA2/8/markdown)



## NAME
       sa2 - Create a report from the current standard system activity daily data file.


## SYNOPSIS
### /usr/lib/sysstat/sa2


## DESCRIPTION
       The  **sa2**  command is a shell procedure variant of the **sar** command which writes a daily report
       in the _sarDD_ or the _sarYYYYMMDD_ file, where _YYYY_ stands for the current year, _MM_ for the cur‐
       rent month and _DD_ for the current day. By default the report is saved in the _/var/log/sysstat_
       directory. The **sa2** command will also remove reports more than one week old by  default.   You
       can  however  keep reports for a longer (or a shorter) period by setting the **HISTORY** environ‐
       ment variable. Read the [**sysstat**(5)](https://www.chedong.com/phpMan.php/man/sysstat/5/markdown) manual page for details.

       The **sa2** command accepts most of the flags and parameters of the **sar** command.

       The **sa2** command is designed to be started automatically by the **cron** command.


## EXAMPLES
       To run the **sa2** command daily, place the following entry in your root crontab file:

       **5** **19** ***** ***** **1-5** **/usr/lib/sysstat/sa2** **-A**

       This will generate by default a daily report called _sarDD_ in the _/var/log/sysstat_  directory,
       where the _DD_ parameter is a number representing the day of the month.

### Debian note
       The  Debian  sysstat package has already placed such an entry in your system crontab.  Please
       refer to the _/usr/share/doc/sysstat/README.Debian_ file for details.

## FILES
       _/var/log/sysstat/sarDD_
       _/var/log/sysstat/sarYYYYMMDD_
              The standard system activity daily report files  and  their  default  location.   _YYYY_
              stands for the current year, _MM_ for the current month and _DD_ for the current day.


## AUTHOR
       Sebastien Godard (sysstat <at> orange.fr)


## SEE ALSO
       [**sar**(1)](https://www.chedong.com/phpMan.php/man/sar/1/markdown), [**sadc**(8)](https://www.chedong.com/phpMan.php/man/sadc/8/markdown), [**sa1**(8)](https://www.chedong.com/phpMan.php/man/sa1/8/markdown), [**sadf**(1)](https://www.chedong.com/phpMan.php/man/sadf/1/markdown), [**sysstat**(5)](https://www.chedong.com/phpMan.php/man/sysstat/5/markdown)

       _<https://github.com/sysstat/sysstat_>
       _<http://pagesperso-orange.fr/sebastien.godard/_>



Linux                                         JULY 2020                                       [SA2(8)](https://www.chedong.com/phpMan.php/man/SA2/8/markdown)
