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>
55 lines
1.6 KiB
Bash
Executable File
55 lines
1.6 KiB
Bash
Executable File
#!/bin/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
|
|
|
|
|
|
# Test Proxmox connection methods
|
|
|
|
PROXMOX_HOST="${PROXMOX_HOST:-192.168.11.10}"
|
|
PROXMOX_USER="${PROXMOX_USER:-root}"
|
|
|
|
echo "Testing Proxmox Connection Methods"
|
|
echo "==================================="
|
|
echo ""
|
|
|
|
echo "1. Testing Ping..."
|
|
if ping -c 2 -W 2 $PROXMOX_HOST > /dev/null 2>&1; then
|
|
echo " ✓ Ping successful"
|
|
else
|
|
echo " ✗ Ping failed (host unreachable)"
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Testing Port 8006..."
|
|
if timeout 3 bash -c "echo > /dev/tcp/$PROXMOX_HOST/8006" 2>/dev/null; then
|
|
echo " ✓ Port 8006 is accessible"
|
|
else
|
|
echo " ✗ Port 8006 is not accessible"
|
|
fi
|
|
|
|
echo ""
|
|
echo "3. Testing SSH..."
|
|
if timeout 5 ssh -o StrictHostKeyChecking=no -o ConnectTimeout=3 $PROXMOX_USER@$PROXMOX_HOST "echo 'SSH works'" 2>/dev/null; then
|
|
echo " ✓ SSH connection successful"
|
|
echo ""
|
|
echo "4. Testing pvesh via SSH..."
|
|
if timeout 5 ssh -o StrictHostKeyChecking=no -o ConnectTimeout=3 $PROXMOX_USER@$PROXMOX_HOST "pvesh get /nodes --output-format json" 2>/dev/null | grep -q "node"; then
|
|
echo " ✓ pvesh works via SSH"
|
|
echo ""
|
|
echo "→ Recommendation: Use list_vms.sh (shell script)"
|
|
else
|
|
echo " ✗ pvesh not available or failed"
|
|
fi
|
|
else
|
|
echo " ✗ SSH connection failed"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Current Network Info:"
|
|
echo " Your IP: $(ip addr show | grep 'inet.*192.168' | awk '{print $2}' | head -1)"
|
|
echo " Target Host: $PROXMOX_HOST"
|