Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
62 lines
2.1 KiB
Bash
62 lines
2.1 KiB
Bash
#!/usr/bin/env bash
|
|
# Verify NPMplus Alltra/HYBX (10235) connectivity
|
|
# See: docs/04-configuration/NPMPLUS_ALLTRA_HYBX_MASTER_PLAN.md
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
source "$PROJECT_ROOT/config/ip-addresses.conf" 2>/dev/null || true
|
|
|
|
HOST="${PROXMOX_HOST_R630_01:-192.168.11.11}"
|
|
VMID="${NPMPLUS_ALLTRA_HYBX_VMID:-10235}"
|
|
IP="${IP_NPMPLUS_ALLTRA_HYBX:-192.168.11.169}"
|
|
|
|
GREEN='\033[0;32m'
|
|
RED='\033[0;31m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m'
|
|
pass() { echo -e "${GREEN}[PASS]${NC} $1"; }
|
|
fail() { echo -e "${RED}[FAIL]${NC} $1"; }
|
|
warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
|
|
|
|
echo "Verifying NPMplus Alltra/HYBX (VMID $VMID, IP $IP)..."
|
|
echo ""
|
|
|
|
# 1. Container status
|
|
if ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@"$HOST" "pct status $VMID 2>/dev/null" | grep -q running; then
|
|
pass "Container $VMID is running"
|
|
else
|
|
fail "Container $VMID not running"
|
|
fi
|
|
|
|
# 2. NPMplus container
|
|
if ssh -o StrictHostKeyChecking=no root@"$HOST" "pct exec $VMID -- docker ps --filter 'name=npmplus' --format '{{.Status}}' 2>/dev/null" | grep -qE "Up|healthy"; then
|
|
pass "NPMplus Docker container is up"
|
|
else
|
|
fail "NPMplus Docker container not running"
|
|
fi
|
|
|
|
# 3. Internal HTTP
|
|
if curl -s -o /dev/null -w "%{http_code}" --connect-timeout 5 "http://$IP:80/" 2>/dev/null | grep -qE "200|301|302"; then
|
|
pass "Internal HTTP ($IP:80) responds"
|
|
else
|
|
fail "Internal HTTP ($IP:80) not reachable"
|
|
fi
|
|
|
|
# 4. Internal Admin UI
|
|
if curl -s -o /dev/null -w "%{http_code}" --connect-timeout 5 -k "https://$IP:81/" 2>/dev/null | grep -qE "200|301|302"; then
|
|
pass "Internal Admin UI ($IP:81) responds"
|
|
else
|
|
fail "Internal Admin UI ($IP:81) not reachable"
|
|
fi
|
|
|
|
# 5. Internal HTTPS
|
|
if curl -s -o /dev/null -w "%{http_code}" --connect-timeout 5 -k "https://$IP:443/" 2>/dev/null | grep -qE "200|301|302|404"; then
|
|
pass "Internal HTTPS ($IP:443) responds"
|
|
else
|
|
warn "Internal HTTPS ($IP:443) - check if expected"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Direct/port-forward (76.53.10.38) tests require UDM Pro config. See: docs/04-configuration/UDM_PRO_NPMPLUS_ALLTRA_HYBX_PORT_FORWARD.md"
|