{
    "mode": "man",
    "parameter": "sa2",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/sa2/8/json",
    "generated": "2026-06-13T22:07:45Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "sa2 - Create a report from the current standard system activity daily data file.\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "/usr/lib/sysstat/sa2",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "The  sa2  command is a shell procedure variant of the sar command which writes a daily report\nin the sarDD or the sarYYYYMMDD file, where YYYY stands for the current year, MM for the cur‐\nrent month and DD for the current day. By default the report is saved in the /var/log/sysstat\ndirectory. The sa2 command will also remove reports more than one week old by  default.   You\ncan  however  keep reports for a longer (or a shorter) period by setting the HISTORY environ‐\nment variable. Read the sysstat(5) manual page for details.\n\nThe sa2 command accepts most of the flags and parameters of the sar command.\n\nThe sa2 command is designed to be started automatically by the cron command.\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "To run the sa2 command daily, place the following entry in your root crontab file:\n\n5 19 * * 1-5 /usr/lib/sysstat/sa2 -A\n\nThis will generate by default a daily report called sarDD in the /var/log/sysstat  directory,\nwhere the DD parameter is a number representing the day of the month.\n",
            "subsections": [
                {
                    "name": "Debian note",
                    "content": "The  Debian  sysstat package has already placed such an entry in your system crontab.  Please\nrefer to the /usr/share/doc/sysstat/README.Debian file for details.\n"
                }
            ]
        },
        "FILES": {
            "content": "/var/log/sysstat/sarDD\n/var/log/sysstat/sarYYYYMMDD\nThe standard system activity daily report files  and  their  default  location.   YYYY\nstands for the current year, MM for the current month and DD for the current day.\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Sebastien Godard (sysstat <at> orange.fr)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "sar(1), sadc(8), sa1(8), sadf(1), sysstat(5)\n\nhttps://github.com/sysstat/sysstat\nhttp://pagesperso-orange.fr/sebastien.godard/\n\n\n\nLinux                                         JULY 2020                                       SA2(8)",
            "subsections": []
        }
    },
    "summary": "sa2 - Create a report from the current standard system activity daily data file.",
    "flags": [],
    "examples": [
        "To run the sa2 command daily, place the following entry in your root crontab file:",
        "5 19 * * 1-5 /usr/lib/sysstat/sa2 -A",
        "This will generate by default a daily report called sarDD in the /var/log/sysstat  directory,",
        "where the DD parameter is a number representing the day of the month.",
        "The  Debian  sysstat package has already placed such an entry in your system crontab.  Please",
        "refer to the /usr/share/doc/sysstat/README.Debian file for details."
    ],
    "see_also": [
        {
            "name": "sar",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/sar/1/json"
        },
        {
            "name": "sadc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/sadc/8/json"
        },
        {
            "name": "sa1",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/sa1/8/json"
        },
        {
            "name": "sadf",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/sadf/1/json"
        },
        {
            "name": "sysstat",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/sysstat/5/json"
        }
    ]
}