Files
aitbc/scripts/check-aitbc-servers.sh
AITBC System 1ac76e2329 resolve merge conflicts for PR #40
- Remove merge conflict markers from blockchain RPC router
- Resolve dev_heartbeat.py conflicts (keep security vulnerability checks)
- Fix claim-task.py conflicts (unify TTL handling with timedelta)
- Preserve all production setup improvements from both branches
2026-03-18 16:36:45 +01:00

32 lines
939 B
Bash
Executable File

#!/bin/bash
# Script to check git status on aitbc and aitbc1 servers
echo "=== Checking AITBC Servers Git Status ==="
# Check aitbc server
echo -e "\n=== Checking aitbc server ==="
if ssh aitbc "cd /opt/aitbc && git status" 2>/dev/null; then
echo "aitbc server reachable"
else
echo "aitbc server not reachable"
fi
# Check aitbc1 server
echo -e "\n=== Checking aitbc1 server ==="
if ssh aitbc1 "cd /opt/aitbc && git status" 2>/dev/null; then
echo "aitbc1 server reachable"
else
echo "aitbc1 server not reachable"
fi
# Check aitbc-cascade (current server)
echo -e "\n=== Checking aitbc-cascade server (local) ==="
cd /opt/aitbc
git status
echo -e "\n=== Server connectivity summary ==="
echo "aitbc: $(ssh -o ConnectTimeout=5 aitbc echo "reachable" 2>/dev/null || echo "not reachable")"
echo "aitbc1: $(ssh -o ConnectTimeout=5 aitbc1 echo "reachable" 2>/dev/null || echo "not reachable")"
echo "aitbc-cascade: local"