Created
January 3, 2023 09:04
-
-
Save aitseitz/0db3144c3f1649896fea773b7e6db0ef to your computer and use it in GitHub Desktop.
Collect system activity information with SAR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INTERVAL=${1:-5} | |
COUNT=${2:-59} | |
today=`date +%Y-%m-%d` | |
sar -u $INTERVAL $COUNT >> ~/log/sarstat-${today}.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Monitor System Performance with SAR command
Manual:
https://linux.die.net/man/1/sar
Usage:
./sar_intervall.sh
Example Output:
--> could help to find out that cpu pinning is not correctly configured for alfresco vms.