Is there a way to just display a given days averages using sar. I currently do something like the following:sar -u -s 00:00:00 -e 23:59:59 -f /var/log/sysstat/sa10And just take the last (average) line to add to a report. But it would be nice and easy to just gen my report if I could pass an argument to just spit-out the average. I could not find such an option in the sar documentation. So, unless I am missing it, I am guessing the option is no. However, It's very possible I'm missing it or there might be another tool other than sar that might expose this functionality.
Get daily averages from sar
ubuntu;sar
You can find the average by piping the tail command to your command. By this way, your command will always return only one line. sar -u -s 00:00:00 -e 23:59:59 -f /var/log/sysstat/sa10 | tail -1