Debian Codegraph @

upstream/fedora-44/man8/sa2.8

raw
1 .\" sa2 manual page - (C) 1999-2020 Sebastien Godard (sysstat <at> orange.fr)
2 .TH SA2 8 "AUGUST 2023" Linux "Linux User's Manual" -*- nroff -*-
3 .SH NAME
4 sa2 \- Create a report from the current standard system activity daily data file.
5
6 .SH SYNOPSIS
7 .B /usr/lib64/sa/sa2
8
9 .SH DESCRIPTION
10 .RB "The " "sa2 " "command is a shell procedure variant of the " "sar"
11 command which writes a daily report in the
12 .IR "sarDD " "or the " "sarYYYYMMDD " "file, where"
13 .IR "YYYY " "stands for the current year, " "MM " "for the current month and " "DD"
14 for the current day. By default the report is saved in the
15 .I /var/log/sa
16 directory. The
17 .B sa2
18 command will also remove reports more than one week old by default.
19 You can however keep reports for a longer (or a shorter) period by setting the
20 .B HISTORY
21 environment variable. Read the
22 .BR "sysstat" "(5) manual page for details."
23 .PP
24 .RB "The " "sa2 " "command accepts most of the flags and parameters of the " "sar " "command."
25 .PP
26 .RB "The " "sa2 " "command is designed to be started automatically by the " "cron " "command."
27
28 .SH EXAMPLES
29 .RB "To run the " "sa2"
30 command daily, place the following entry in your root crontab file:
31
32 .B 5 19 * * 1\-5 /usr/lib64/sa/sa2 \-A
33
34 This will generate by default a daily report called
35 .IR "sarDD " "in the"
36 .I /var/log/sa
37 directory, where the
38 .IR "DD " "parameter is a number representing the day of the month."
39
40 .SH FILES
41 .I /var/log/sa/sarDD
42 .br
43 .I /var/log/sa/sarYYYYMMDD
44 .RS
45 The standard system activity daily report files and their default location.
46 .IR "YYYY " "stands for the current year, " "MM " "for the current month and " "DD " "for the current day."
47
48 .SH AUTHOR
49 Sebastien Godard (sysstat <at> orange.fr)
50
51 .SH SEE ALSO
52 .BR "sar" "(1), " "sadc" "(8), " "sa1" "(8), " "sadf" "(1), " "sysstat" "(5)"
53 .PP
54 .I https://github.com/sysstat/sysstat
55 .br
56 .I https://sysstat.github.io/