Created
March 19, 2024 21:47
-
-
Save kmille/739028c3fd8dc08d0eca9ac4d8902255 to your computer and use it in GitHub Desktop.
Analyzing a slow PC
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 | |
echo "Analysiere System..." | |
echo "Schreibe Logdatei nach /tmp/analyse.log" | |
exec > /tmp/analyse.log 2>&1 | |
set -x | |
ITERATIONS=4 | |
date | |
journalctl -b -p 4 | |
systemctl --failed | |
systemctl list-unit-files --state enabled | |
ps faux | |
uptime | |
free -h | |
mpstat -P ALL 1 "$ITERATIONS" | |
pidstat 1 "$ITERATIONS" | |
iostat -xz 1 "$ITERATIONS" | |
sar -n DEV 1 "$ITERATIONS" | |
sar -n TCP,ETCP 1 "$ITERATIONS" | |
ss -tpn | |
ss -tpnl | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deployment