llm-api/audit_ki_stack.sh hinzugefügt
All checks were successful
Deploy Trainer_LLM to llm-node / deploy (push) Successful in 2s

This commit is contained in:
Lars 2025-09-01 13:07:42 +02:00
parent 9327bc48d8
commit ad6df74ef4

45
llm-api/audit_ki_stack.sh Normal file
View File

@ -0,0 +1,45 @@
#!/usr/bin/env bash
set -euo pipefail
echo "=== SYSTEM ==="
uname -a || true
echo
echo "CPU/Mem:"
lscpu | egrep 'Model name|CPU\(s\)|Thread|Core|Socket' || true
free -h || true
echo
echo "Disk:"
df -hT | awk 'NR==1 || /\/(srv|opt|home|var|$)/'
echo
echo "=== DOCKER ==="
docker --version || true
docker compose version || docker-compose --version || true
echo
echo "Running containers:"
docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Ports}}" || true
echo
echo "=== PYTHON ==="
python3 --version || true
python3.12 --version || true
pip --version || true
echo
echo "=== NODE/NPM (für n8n, falls nativ) ==="
node -v || true
npm -v || true
echo
echo "=== BESETZTE PORTS (root zeigt Prozesse) ==="
for p in 8000 6333 11434 5678; do
echo "--- Port $p ---"
(sudo ss -ltnp | grep ":$p ") || echo "frei"
done
echo
echo "=== DIENSTE / HINWEISE ==="
systemctl list-units --type=service | egrep -i 'qdrant|ollama|n8n|uvicorn|gunicorn' || true
echo
echo "Fertig. Prüfe ob Ports frei sind und welche Container bereits laufen."