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 08:09] – 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 == | ||
| <sxh bash> | <sxh bash> | ||
| - | for i in $(ls -tr / | + | for i in $(ls -tr / |
| </ | </ | ||
| == CPU == | == CPU == | ||
| <sxh bash> | <sxh bash> | ||
| - | for i in $(ls -tr / | + | for i in $(ls -tr / |
| </ | </ | ||
| == load == | == load == | ||
| <sxh bash> | <sxh bash> | ||
| - | for i in $(ls -tr / | + | load=$(grep -ic 'model name' / |
| + | </ | ||
| + | <sxh bash> | ||
| + | for i in $(ls -tr / | ||
| </ | </ | ||
| == Block Device I/O Activities == | == Block Device I/O Activities == | ||
sar_commands.1462781395.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
