Find the answer to your Linux question:
Results 1 to 3 of 3
Do anyone have a syntax to get the current SAR stat? Example, it's 3:06AM, the command will get the cpu time of 3:00am only (one line)...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Location
    Manila
    Posts
    17

    Question SAR Current Stat extracttion


    Do anyone have a syntax to get the current SAR stat?

    Example, it's 3:06AM, the command will get the cpu time of 3:00am only (one line)

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,655
    By default, the sar data collection cron job (/etc/cron.d/sysstat) will only collect on 10 minute intervals, which is why you are getting what you are getting. If you need sar collection in one minute intervals, then you will need to edit the /etc/cron.d/sysstat file so it collects on 1 minute intervals, and then restart the cron daemon with the command "service crond restart".
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Location
    Manila
    Posts
    17
    Quote Originally Posted by Rubberman View Post
    By default, the sar data collection cron job (/etc/cron.d/sysstat) will only collect on 10 minute intervals, which is why you are getting what you are getting. If you need sar collection in one minute intervals, then you will need to edit the /etc/cron.d/sysstat file so it collects on 1 minute intervals, and then restart the cron daemon with the command "service crond restart".
    Hi, I am planning to run a cron that will run at 3:10AM, which will get the sar stats for 3:00AM... Can you advise how I will get that?

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •