1 .\" sa1 manual page - (C) 1999-2020 Sebastien Godard (sysstat <at> orange.fr)
2 .TH SA1 8 "NOVEMBER 2020" Linux "Linux User's Manual" -*- nroff -*-
4 sa1 \- Collect and store binary data in the system activity daily data file.
7 .B @SA_LIB_DIR@/sa1 [ --boot | --rotate [ iso ] | --sleep |
13 .RB "command is a shell procedure variant of the " "sadc"
14 command and handles all of the flags and parameters of that command. The
16 command collects and stores binary data in the current standard
17 system activity daily data file.
19 The standard system activity daily data file is named
21 .BR "sadc" "'s option " "-D " "is used, in which case its name is"
23 .RI "where " "YYYY " "stands for the current year, " "MM " "for the current month and " "DD"
24 for the current day. By default it is located in the
28 .RI "The " "interval " "and " "count"
29 parameters specify that the record should be written
30 .IR "count " "times at " "interval"
31 seconds. If no arguments are given to
33 then a single record is written.
37 command is designed to be started automatically by the
38 .BR "cron " "command."
44 .BR "sa1 " "that the " "sadc"
45 command should be called without specifying the
46 .IR "interval " "and " "count"
47 parameters in order to insert a dummy record, marking the time when the counters
51 .RB "Use this option to tell " "sa1 " "to insert a record of statistics to the standard"
52 .IR "saDD" " system activity daily data file of the previous day."
53 This should be done shortly after midnight (on day DD+1) in order to make sure that the
54 data file covers the whole day, including the last interval of time just before midnight.
55 .RB "Adding the " "iso" " keyword tells " "sa1" " to use
56 .IR "saYYYYMMDD" " instead of " "saDD" " as the standard system activity daily data file name."
59 .RB "This option tells " "sa1 " "that the " "sadc"
60 command should insert a comment indicating that the system is entering or leaving
61 sleep mode (i.e. system suspend or hibernation).
64 To collect data (including those from disks) every 10 minutes,
65 place the following entry in your root crontab file:
67 .B 0,10,20,30,40,50 * * * * @SA_LIB_DIR@/sa1 1 1 -S DISK
69 To rotate current system activity daily data file, ensuring it is complete,
70 place the following entry in your root crontab file:
72 .B 0 0 * * * @SA_LIB_DIR@/sa1 --rotate
77 .I @SA_DIR@/saYYYYMMDD
79 The standard system activity daily data files and their default location.
80 .IR "YYYY " "stands for the current year, " "MM " "for the current month and " "DD"
84 Sebastien Godard (sysstat <at> orange.fr)
87 .BR "sar" "(1), " "sadc" "(8), " "sa2" "(8), " "sadf" "(1), " "sysstat" "(5)"
89 .I https://github.com/sysstat/sysstat
91 .I http://pagesperso-orange.fr/sebastien.godard/