LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-29-2013, 02:02 AM   #1
Senthilv
Member
 
Registered: Jan 2011
Posts: 64
Blog Entries: 2

Rep: Reputation: 0
How to check the System Performance of Yesterday ?


Hai,

I want to check the system performance of yesterday timing like 5.00 PM to 6.00 PM ?
like cpu utilization.

Is it Possible ?
 
Old 08-29-2013, 02:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by Senthilv View Post
I want to check the system performance of yesterday timing like 5.00 PM to 6.00 PM ?
like cpu utilization.

Is it Possible ?
The sar package can do this:
- Linux and Unix sar command
- sar - examples

If sar hasn't been set up yet then you cannot get info about earlier events (I'm not sure if your question is actually about yesterday). It must be active in order to get information.
 
Old 08-29-2013, 11:07 AM   #3
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,042
Blog Entries: 4

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
if, when sysstat is installed (this is the package that contains 'sar', use
Code:
sar -f /var/log/sa/sa28 -s 17:00:00 -e 18:00:00
This of course presuming that sar is installed and collecting.

Ubuntu:
Code:
apt-get install -y sysstat
sed -i 's/false/true/' /etc/default/sysstat
/etc/init.d/sysstat start
CentOS:
Code:
yum install -y sysstat
sed -i 's/7/30/' /etc/sysconfig/sysstat # Optional, but I prefer 30 days of collected data, Default is 7 days
grep -v "#" /etc/cron.d/sysstat
/etc/init.d/sysstat start
/var/log/sa/sa28 would be yesterday's dd using
Code:
date +"%d" --date="1 days ago"
or just try something like
Code:
sar -f /var/log/sa/sa$(date +"%d" --date="1 days ago") -s 17:00:00 -e 18:00:00

Last edited by Habitual; 08-29-2013 at 11:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] System got totally messed up after huge update yesterday MTK358 Arch 35 04-11-2010 07:16 PM
I need a Cybercafe point of sales (P.O.S) system...yesterday! tux_addict Debian 7 08-08-2009 11:28 AM
performance check harsshal Linux - Software 4 04-04-2007 09:02 AM
KDE 3.5.1: Check CPU performance in SYSTEM tray smiley_lauf Linux - Newbie 5 02-27-2006 10:36 AM
Performance check? sikandar Linux - Networking 1 06-02-2005 01:21 PM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration