# Quick network scan of infrastructure IPs
$ips = @(
    "10.0.10.1",  # UCG Ultra
    "10.0.10.2",  # pve-router
    "10.0.10.3",  # main-pve
    "10.0.10.4",  # pve-storage
    "10.0.10.5",  # openmediavault
    "10.0.10.10", # HOMELAB-COMMAND
    "10.0.10.13", # HP iLO
    "10.0.10.15", # CA Server
    "10.0.10.20", # PostgreSQL
    "10.0.10.21", # Authentik
    "10.0.10.22", # n8n
    "10.0.10.23", # RustDesk
    "10.0.10.24", # Home Assistant
    "10.0.10.25", # Monitoring (Prometheus/Grafana)
    "10.0.10.26", # Uptime Kuma
    "10.0.10.27", # Dockge
    "10.0.10.28", # ESPHome (deprecated)
    "10.0.10.30", # ad5m 3D printer
    "10.0.10.40", # Bar Assistant
    "10.0.10.41", # Minecraft
    "10.0.10.88"  # Web Power Switch
)

Write-Host "Scanning documented infrastructure IPs..."
$results = @()

foreach ($ip in $ips) {
    $online = Test-Connection -ComputerName $ip -Count 1 -Quiet -TimeoutSeconds 1
    $status = if ($online) { "UP" } else { "DOWN" }
    $results += [PSCustomObject]@{
        IP = $ip
        Status = $status
    }
    Write-Host "$ip - $status"
}

Write-Host "`nSummary:"
$results | Format-Table -AutoSize
