LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   sar output for a particular day (https://www.linuxquestions.org/questions/linux-general-1/sar-output-for-a-particular-day-794001/)

ZAMO 03-08-2010 12:56 PM

sar output for a particular day
 
Hi all,


I have to output a sar report which was created on Mar 1 and am trying with

sar -f sar01
and
sar -o sar01

Can someone help me,to which option i can use to extract the output from sa01. Further any link to learn the "SAR" ,documents are appreciated.


Thanks

MensaWater 03-08-2010 01:31 PM

sar -f /var/log/sa/sa01

You have to specify the path to the sar file for the day in which you're interested. Also the file names for the daily files are "sa##" not "sar##".

Typing "man sar" will show you the sar man page and give you a great deal of detail on the various flags you can use to see subsets of the information.

You can also type "man sadc" for the sar data collector command that generates the above files.

In UNIX/Linux for most commands (and many config files) typing "man" and the command or config name will give you some information.

Also typing "man -k <keyword>" might give you other man pages that include information on the subject. e.g. "man -k sar".

ZAMO 03-08-2010 01:39 PM

Thanks a Lot


All times are GMT -5. The time now is 04:58 AM.