diff --git a/wizard-work/spark/sysdiag.sh b/wizard-work/spark/sysdiag.sh new file mode 100755 index 0000000..a49e150 --- /dev/null +++ b/wizard-work/spark/sysdiag.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Simple system diagnostic script +echo "=== System Info ===" +echo "Hostname: $(hostname)" +echo "Kernel: $(uname -r)" +echo "Uptime: $(uptime -p)" +echo "" +echo "=== CPU ===" +nproc | xargs -I{} echo "Cores: {}" +echo "Load: $(cat /proc/loadavg | cut -d' ' -f1-3)" +echo "" +echo "=== Memory ===" +free -h | grep -E "^(Mem|Swap)" +echo "" +echo "=== Disk ===" +df -h / | tail -1 | awk '{print "Root FS: "$3" / "$2" ("$5" used)"}' +echo "" +echo "=== Hermes Profile ===" +if [ -d /root/.hermes/profiles/spark ]; then + echo "Profile exists: /root/.hermes/profiles/spark" + ls -1 /root/.hermes/profiles/spark 2>/dev/null | head -5 | tr '\n' ' ' + echo "" +else + echo "Profile not found" +fi \ No newline at end of file