spark: add system diagnostic script for quick environment inspection

This commit is contained in:
spark authored and ledger committed 2026-10-30 05:37:09 +00:00
1 parent 32494b25f7
commit 65657e3809
1 file changed
+25
+25
View File
@@ -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