1SA2(8)                        Linux User's Manual                       SA2(8)
2
3
4

NAME

6       sa2  -  Create a report from the current standard system activity daily
7       data file.
8
9

SYNOPSIS

11       /usr/lib64/sa/sa2
12
13

DESCRIPTION

15       The sa2 command is a shell procedure variant of the sar  command  which
16       writes  a daily report in the sarDD or the sarYYYYMMDD file, where YYYY
17       stands for the current year, MM for the current month and  DD  for  the
18       current  day.  By default the report is saved in the /var/log/sa direc‐
19       tory. The sa2 command will also remove reports more than one  week  old
20       by  default.   You can however keep reports for a longer (or a shorter)
21       period by setting the HISTORY environment variable. Read the sysstat(5)
22       manual page for details.
23
24       The  sa2  command  accepts  most of the flags and parameters of the sar
25       command.
26
27       The sa2 command is designed to be started  automatically  by  the  cron
28       command.
29
30

EXAMPLES

32       To  run  the  sa2 command daily, place the following entry in your root
33       crontab file:
34
35       5 19 * * 1-5 /usr/lib64/sa/sa2 -A
36
37       This will generate by default  a  daily  report  called  sarDD  in  the
38       /var/log/sa  directory, where the DD parameter is a number representing
39       the day of the month.
40
41

FILES

43       /var/log/sa/sarDD
44       /var/log/sa/sarYYYYMMDD
45              The standard system activity daily report files  and  their  de‐
46              fault  location.   YYYY  stands for the current year, MM for the
47              current month and DD for the current day.
48
49

AUTHOR

51       Sebastien Godard (sysstat <at> orange.fr)
52
53

SEE ALSO

55       sar(1), sadc(8), sa1(8), sadf(1), sysstat(5)
56
57       https://github.com/sysstat/sysstat
58
59
60
61Linux                              MAY 2023                             SA2(8)
Impressum