Debian Codegraph @

upstream/debian-unstable/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/libexec/sysstat/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/sysstat
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/libexec/sysstat/sa2 \-A
33
34 This will generate by default a daily report called
35 .IR "sarDD " "in the"
36 .I /var/log/sysstat
37 directory, where the
38 .IR "DD " "parameter is a number representing the day of the month."
39 .SS Debian note
40 The Debian sysstat package has already placed such an entry in your system crontab.
41 Please refer to the
42 .I /usr/share/doc/sysstat/README.Debian
43 file for details.
44 .SH FILES
45 .I /var/log/sysstat/sarDD
46 .br
47 .I /var/log/sysstat/sarYYYYMMDD
48 .RS
49 The standard system activity daily report files and their default location.
50 .IR "YYYY " "stands for the current year, " "MM " "for the current month and " "DD " "for the current day."
51
52 .SH AUTHOR
53 Sebastien Godard (sysstat <at> orange.fr)
54
55 .SH SEE ALSO
56 .BR "sar" "(1), " "sadc" "(8), " "sa1" "(8), " "sadf" "(1), " "sysstat" "(5)"
57 .PP
58 .I https://github.com/sysstat/sysstat
59 .br
60 .I https://sysstat.github.io/