Results 1 to 1 of 1
Hi Guys,
I am trying to get statistics for the CPU, MEM, etc... with the sar so I can display it in the ksar later on.
To get the statistics ...
- 04-30-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 33
Sar & KSar
Hi Guys,
I am trying to get statistics for the CPU, MEM, etc... with the sar so I can display it in the ksar later on.
To get the statistics I do:
LC_ALL=C sar -A > /tmp/sar.data.txt
These way I ONLY get the statistics from 00:00:00 from that day until the time I run it.
Or I can get it working for a specific date as:
LC_ALL=C sar -f /var/log/sa/sa29 -A > /tmp/sar.data.txt
How can I get the statistics ALSO for a range of older dates? (such as the last 7 days for example)
J


Reply With Quote