Files
Proxmox-Coolify-Manager/scripts/Get-ProxmoxInventory.ps1
T

9 lines
405 B
PowerShell

$ErrorActionPreference = "Stop"
. "$PSScriptRoot\ProxmoxAgent.ps1"
$config = Get-ProxmoxConfig
$command = "echo ===HOST===; hostname; pveversion; echo; echo ===LXC===; pct list; echo; echo ===QEMU===; qm list; echo; echo ===DOCKER_LXC_$($config.CoolifyLxc)===; pct exec $($config.CoolifyLxc) -- docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'"
Invoke-ProxmoxSshCommand -Command $command