Files
proxmox/scripts/archive/consolidated/verify/check-migration-status.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- 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>
2026-02-12 15:46:57 -08:00

51 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Load IP configuration
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
# Quick status check for ML110 to R630-01 migration
SOURCE_NODE="ml110"
SOURCE_NODE_IP="${PROXMOX_HOST_ML110}"
SOURCE_NODE_PASS="L@kers2010"
TARGET_NODE="r630-01"
TARGET_NODE_IP="${PROXMOX_HOST_R630_01}"
TARGET_NODE_PASS="password"
VMID_START=3000
VMID_END=10151
ssh_ml110() {
sshpass -p "$SOURCE_NODE_PASS" ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@"$SOURCE_NODE_IP" "$@" 2>/dev/null
}
ssh_r630_01() {
sshpass -p "$TARGET_NODE_PASS" ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@"$TARGET_NODE_IP" "$@" 2>/dev/null
}
echo "=== Migration Status Check ==="
echo ""
# Count containers on source
source_count=$(ssh_ml110 "pct list 2>/dev/null | awk '\$1 >= $VMID_START && \$1 <= $VMID_END' | wc -l")
echo "Containers on ML110: $source_count"
# Count containers on target
target_count=$(ssh_r630_01 "pct list 2>/dev/null | awk '\$1 >= $VMID_START && \$1 <= $VMID_END' | wc -l")
echo "Containers on R630-01: $target_count"
echo ""
echo "Progress: $target_count / $((source_count + target_count)) containers migrated"
# Show containers on target
if [ "$target_count" -gt 0 ]; then
echo ""
echo "Migrated containers:"
ssh_r630_01 "pct list 2>/dev/null | awk '\$1 >= $VMID_START && \$1 <= $VMID_END'"
fi