sar_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sar_commands [2016/05/09 11:26] – luke7858 | sar_commands [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Common Sar Commands ==== | ==== Common Sar Commands ==== | ||
+ | <sxh bash> | ||
+ | sar -u | ||
+ | sar -q | ||
+ | sar -b | ||
+ | sar -B | ||
+ | sar -d (device) | ||
+ | sar -n DEV | ||
+ | sar -n SOCK | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
Show all statistics for current day: | Show all statistics for current day: | ||
<sxh bash> | <sxh bash> | ||
Line 44: | Line 56: | ||
sar -q | awk '$5 > 4' | sar -q | awk '$5 > 4' | ||
</ | </ | ||
+ | \\ | ||
=== Summary of logs === | === Summary of logs === | ||
== RAM == | == RAM == | ||
Line 54: | Line 67: | ||
</ | </ | ||
== load == | == load == | ||
+ | <sxh bash> | ||
+ | load=$(grep -ic 'model name' / | ||
+ | </ | ||
<sxh bash> | <sxh bash> | ||
for i in $(ls -tr / | for i in $(ls -tr / |
sar_commands.1462793165.txt.gz · Last modified: 2024/05/23 07:26 (external edit)