Results 1 to 1 of 1
Thread: Sar & KSar
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2010
Sar & KSar
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)