Find the answer to your Linux question:
Results 1 to 5 of 5

Thread: Question on SAR

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question on SAR

    Hi All,

    I am setting up Linux SAR to record performance stats on my linux box.

    I want to retain the data for 1 month.I changed the variable history to 31 days in /etc/sysconfig/sysstat and also on /usr/lib64/sa/sa2.

    My question:

    1. Since I set this only on october 30 and my SAR datafiles begin from october 17( previous datafiles were already removed) - will 31st day be only on november 17 or is it per calendar month like oct 1 - oct 31?

    I am following this link ( FAQ 2.19)
    <link > < link>

    Thanks in advance for the help.

  2. #2
    it's per calendar days, there's nothing to worry about

  3. #3
    Quote Originally Posted by vasile002 View Post
    it's per calendar days, there's nothing to worry about

    Thanks you for the reply. But on the box I see this.According to the link I provided on the previous post, I should be seeing a folder <YYYYMM> and datafile <saDD>. But these files placed under /var/log/sa instead . I am a bit confused. Anything missing here?

    -rw-r--r-- 1 root root 578513 Oct 30 23:53 sar30
    -rw-r--r-- 1 root root 546288 Oct 31 23:50 sa31
    -rw-r--r-- 1 root root 578513 Oct 31 23:53 sar31
    -rw-r--r-- 1 root root 546288 Nov 1 23:50 sa01
    -rw-r--r-- 1 root root 578513 Nov 1 23:53 sar01
    -rw-r--r-- 1 root root 227760 Nov 2 09:50 sa02

  4. $spacer_open
  5. #4
    Just Joined!
    Join Date
    Feb 2013


    How can I extract data using SAR in just a given time, like for example 03:00:00? Below is my syntax, but nothing comes out...

    >sar -s 03:00:00 -e 03:00:01 -r | awk '{print $5}'

    I plan to get the RAM used percentage...

  6. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    This is an old thread, please start your own.
    You must always face the curtain with a bow.

Posting Permissions

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