sar_commands
This is an old revision of the document!
Common Sar Commands
Show all statistics for current day:
sar -<option>Show statistics 3 times with 1 second interval
sar -<option> 1 3
Show CPU statistics 3 times with 1 second interval, (focus on the last field “%idle” to see the cpu load):
sar 1 3
CPU usage of ALL CPUs
sar -u 1 3
Load average
sar -q
Swap Space
sar -S
Viewing specific time and date
Select a specific time during the day:
sar -<option> -s 10:30:00
sar -q -f /var/log/sa/sa23 -s 10:00:01
sar -p | grep -A5 "07:45"
sar_commands.1429954067.txt.gz · Last modified: 2024/05/23 07:26 (external edit)