Files
proxmox/scripts/maintenance/npmplus-cluster-placement-status.sh
defiQUG 4ebf2d7902
Some checks failed
Deploy to Phoenix / validate (push) Failing after 1s
Deploy to Phoenix / deploy (push) Has been skipped
Deploy to Phoenix / deploy-atomic-swap-dapp (push) Has been skipped
Deploy to Phoenix / cloudflare (push) Has been skipped
chore(repo): sync operator workspace (config, scripts, docs, multi-chain)
Add optional Cosmos/Engine-X/act-runner templates, CWUSDC/EI-matrix tooling,
non-EVM route planner in multi-chain-execution (tests passing), token list and
extraction updates, and documentation (MetaMask matrix, GRU/CWUSDC packets).

Ignore institutional evidence tarballs/sha256 under reports/status.

Validated with: bash scripts/verify/run-all-validation.sh --skip-genesis

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 16:25:08 -07:00

46 lines
1.5 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Show which Proxmox node hosts NPMplus CTs 1023310236 (live SSH).
# Usage: bash scripts/maintenance/npmplus-cluster-placement-status.sh
# Requires: SSH BatchMode to cluster nodes (root@192.168.11.11, .12); extend HOSTS if needed.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# shellcheck source=/dev/null
[[ -f "$PROJECT_ROOT/config/ip-addresses.conf" ]] && source "$PROJECT_ROOT/config/ip-addresses.conf" 2>/dev/null || true
SSH_OPTS=(-o BatchMode=yes -o ConnectTimeout=12 -o StrictHostKeyChecking=no)
HOSTS=(
"${PROXMOX_HOST_R630_01:-192.168.11.11}:r630-01"
"${PROXMOX_HOST_R630_02:-192.168.11.12}:r630-02"
"${PROXMOX_HOST_R630_03:-192.168.11.13}:r630-03"
"${PROXMOX_HOST_R630_04:-192.168.11.14}:r630-04"
)
echo "=== NPMplus CT placement (VMIDs 1023310236) ==="
echo ""
for entry in "${HOSTS[@]}"; do
ip="${entry%%:*}"
label="${entry##*:}"
echo "--- $label ($ip) ---"
if ssh "${SSH_OPTS[@]}" "root@$ip" "pct list | grep -E '^10233|^10234|^10235|^10236' || true" 2>/dev/null; then
:
else
echo "(SSH skipped or failed — check key access to $ip)"
fi
echo ""
done
echo "=== Quick HTTP :81 (LAN, optional) ==="
for ip in 167 168 169 170; do
code=$(curl -sS -m 4 -o /dev/null -w "%{http_code}" "http://192.168.11.$ip:81/" 2>/dev/null || echo "fail")
echo "192.168.11.$ip:81 -> $code"
done
echo ""
echo "Target distribution: docs/04-configuration/NPMPLUS_MISSION_CRITICAL_DISTRIBUTION_AND_HA_PLAN.md"