Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 01-26-2012, 05:59 AM
Kamalkk Kamalkk is offline
Hatchling Croc
 
Join Date: Dec 2011
Posts: 22
Default How To Run sar command for different date ?

Hi All,

I know sar -q displays CPU load averages for the current day. How can I use this command to find CPU load averages for a different date ?

Please help.

Thanks,
Kamalkk
Reply With Quote
  #2  
Old 01-26-2012, 07:02 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: How To Run sar command for different date ?

Did you check:
man sar
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 01-26-2012, 09:04 AM
GatorLhebert's Avatar
GatorLhebert GatorLhebert is offline
HostGator Staff
 
Join Date: Jan 2011
Location: Austin, Tx
Posts: 126
Default Re: How To Run sar command for different date ?

Quote:
Originally Posted by Kamalkk View Post
Hi All,

I know sar -q displays CPU load averages for the current day. How can I use this command to find CPU load averages for a different date ?

Please help.

Thanks,
Kamalkk
Hello,

Thank you for working with us on this issue, if your system has sysstat installed it will probably maintain log data for 7 days by default. The additional files that can be parsed are located in /var/log/sa. In order to pull data for different dates you should use sar -q -f /var/log/sa/sa# . Keep in mind that since you are on a vps some of the data listed in sar reports may not pretain to your specific container. VPS containers in our network share certain attributes with the host node and that may be reflected in the outputs you find in your system status reports.
__________________
Head of Training for Linux Systems Administration (ATX)

Support Portal
http://support.hostgator.com

Last edited by GatorLhebert; 01-26-2012 at 09:06 AM.
Reply With Quote
  #4  
Old 01-26-2012, 12:24 PM
Kamalkk Kamalkk is offline
Hatchling Croc
 
Join Date: Dec 2011
Posts: 22
Default Re: How To Run sar command for different date ?

Thanks,

The sar command with q and f options as you mentioned is working perfectly

Thanks,
Kamalkk
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Date Modified" or "Date Created" tab in File Manager? alice Shared Hosting Support 2 01-22-2011 08:39 PM
PHPlist is out of date ra2uk Quick Install Beta 1 09-06-2010 07:13 PM
Cant run SQL command taha116 Shared Hosting Support 2 07-30-2009 09:51 AM

All times are GMT -5. The time now is 01:24 AM.