Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5

    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 > sebastien.godard.pagesperso-orange.fr/faq.html#sar < link>

    Thanks in advance for the help.

  2. #2
    Just Joined!
    Join Date
    Oct 2011
    Posts
    50
    it's per calendar days, there's nothing to worry about

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5
    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. #4
    Just Joined!
    Join Date
    Feb 2013
    Location
    Manila
    Posts
    17

    Question

    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...

  5. #5
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    This is an old thread, please start your own.
    Closing
    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
  •