25 lines
693 B
Bash
Executable File
25 lines
693 B
Bash
Executable File
#!/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 |