Created
October 17, 2022 06:32
-
-
Save notsobad/cef38a1eb2112d5493e76106b3a1e0fa to your computer and use it in GitHub Desktop.
run this script on machine first.
This file contains 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 | |
run(){ | |
cmd=$@ | |
echo ">> $cmd" | |
eval $cmd | |
echo | |
} | |
run uptime | |
run free -m | |
run "dmesg|tail" | |
run df -h | |
run df -i | |
run ping baidu.com -c 3 | |
run vmstat 1 3 | |
run pidstat 1 3 | |
run sar -n DEV 1 3 | |
run sar -n TCP,ETCP 1 3 | |
run mpstat -P ALL 1 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment