sar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sar [2015/04/04 11:59] – luke7858 | sar [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Installing sar ==== | + | ~~NOCACHE~~ |
- | === CentOS | + | ====== |
- | + | {{tabembed>[[[[sar_install|Install, | |
- | <sxh bash> | + | |
- | yum install sysstat | + | |
- | </ | + | |
- | + | ||
- | === Ubuntu | + | |
- | <sxh bash> | + | |
- | sudo apt-get install sysstat | + | |
- | </ | + | |
- | \\ | + | |
- | ==== Common Sar Commands | + | |
- | Show version of systat: | + | |
- | <sxh bash> | + | |
- | sar -V | + | |
- | </ | + | |
- | \\ | + | |
- | Show CPU statistics 3 times with 1 second interval: | + | |
- | <sxh bash> | + | |
- | sar 1 3 | + | |
- | </ | + | |
- | \\ | + | |
- | CPU usage of all CPUs: | + | |
- | <sxh bash> | + | |
- | sar -u 1 3 | + | |
- | </ | + | |
- | \\ | + | |
- | <sxh bash> | + | |
- | </ | + |
sar.1428148756.txt.gz · Last modified: 2024/05/23 07:26 (external edit)