How to Set Up Automatic Data Collection SAR LOG Solaris 11

  • Become the root role.
  • Run the svcadm enable system/sar:default command.This version of the sadc command writes a special record that marks the time when the counters are reset to zero (boot time)
  • Allow crontab user sys
  • Edit the /var/spool/cron/crontabs/sys crontab file.

    Note – Do not edit a crontab file directly. Instead, use the crontab -e command to make changes to an existing crontab file.


    # crontab -e sys
  • Uncomment the following lines:
    0 * * * 0-6 /usr/lib/sa/sa1
    20,40 8-17 * * 1-5 /usr/lib/sa/sa1
    5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A