sar command examples

sar command examples

sar – Collect, report, or save system activity information.

#sar -u 2 5

Report CPU utilization for each 2 seconds. 5 lines are displayed.

#sar -I 14 -o int14.file 2 10

Report statistics on IRQ 14 for each 2 seconds. 10 lines are displayed. Data are stored in a file called int14.file.

#sar -r -n DEV -f /var/log/sa/sa16

Display memory and network statistics saved in daily data file ‘sa16’.

#sar -A

Display all the statistics saved in current daily data file.


Leave a Reply

Your email address will not be published. Required fields are marked *