Files
proxmox/scripts/archive/consolidated/list/get-container-distribution.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

41 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# Get container distribution across cluster nodes using direct commands
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
PROXMOX_HOST="${PROXMOX_HOST:-192.168.11.10}"
PROXMOX_PASS="${PROXMOX_PASS:-L@kers2010}"
ssh_proxmox() {
sshpass -p "$PROXMOX_PASS" ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 root@"$PROXMOX_HOST" "$@"
}
echo "Container Distribution Across Cluster Nodes"
echo "============================================"
echo ""
# Get all containers from ml110 (since they're all there currently)
echo "All containers (currently on ml110):"
ssh_proxmox "pct list" 2>&1 | grep -v "^VMID" | while IFS= read -r line; do
if [[ -n "$line" ]]; then
vmid=$(echo "$line" | awk '{print $1}')
status=$(echo "$line" | awk '{print $2}')
name=$(echo "$line" | awk '{for(i=5;i<=NF;i++) printf "%s ", $i; print ""}' | xargs)
printf " %-6s %-12s %s\n" "$vmid" "$status" "$name"
fi
done
echo ""
echo "To check which node each container is on:"
echo " ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} 'pvesh get /nodes/ml110/lxc'"
echo " ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} 'pvesh get /nodes/pve/lxc'"
echo " ssh root@${PROXMOX_HOST_ML110:-192.168.11.10} 'pvesh get /nodes/pve2/lxc'"
echo ""