1SA1(8) Linux User's Manual SA1(8)
2
3
4
6 sa1 - Collect and store binary data in the system activity daily data
7 file.
8
9
11 /usr/lib64/sa/sa1 [ --boot | --rotate [ iso ] | --sleep | interval
12 count ]
13
14
16 The sa1 command is a shell procedure variant of the sadc command and
17 handles all of the flags and parameters of that command. The sa1 com‐
18 mand collects and stores binary data in the current standard system ac‐
19 tivity daily data file.
20
21 The standard system activity daily data file is named saDD unless
22 sadc's option -D is used, in which case its name is saYYYYMMDD, where
23 YYYY stands for the current year, MM for the current month and DD for
24 the current day. By default it is located in the /var/log/sa directory.
25
26 The interval and count parameters specify that the record should be
27 written count times at interval seconds. If no arguments are given to
28 sa1 then a single record is written.
29
30 The sa1 command is designed to be started automatically by the cron
31 command.
32
33
35 --boot This option tells sa1 that the sadc command should be called
36 without specifying the interval and count parameters in order to
37 insert a dummy record, marking the time when the counters
38 restart from 0.
39
40 --rotate [ iso ]
41 Use this option to tell sa1 to insert a record of statistics to
42 the standard saDD system activity daily data file of the previ‐
43 ous day. This should be done shortly after midnight (on day
44 DD+1) in order to make sure that the data file covers the whole
45 day, including the last interval of time just before midnight.
46 Adding the iso keyword tells sa1 to use saYYYYMMDD instead of
47 saDD as the standard system activity daily data file name.
48
49 --sleep
50 This option tells sa1 that the sadc command should insert a com‐
51 ment indicating that the system is entering or leaving sleep
52 mode (i.e. system suspend or hibernation).
53
54
56 To collect data (including those from disks) every 10 minutes, place
57 the following entry in your root crontab file:
58
59 0,10,20,30,40,50 * * * * /usr/lib64/sa/sa1 1 1 -S DISK
60
61 To rotate current system activity daily data file, ensuring it is com‐
62 plete, place the following entry in your root crontab file:
63
64 0 0 * * * /usr/lib64/sa/sa1 --rotate
65
66
68 /var/log/sa/saDD
69 /var/log/sa/saYYYYMMDD
70 The standard system activity daily data files and their default
71 location. YYYY stands for the current year, MM for the current
72 month and DD for the current day.
73
74
76 Sebastien Godard (sysstat <at> orange.fr)
77
78
80 sar(1), sadc(8), sa2(8), sadf(1), sysstat(5)
81
82 https://github.com/sysstat/sysstat
83 http://pagesperso-orange.fr/sebastien.godard/
84
85
86
87Linux NOVEMBER 2020 SA1(8)