List VM/container details

MikeC

Renowned Member
Jan 11, 2016
79
0
71
Bay Area, California
Hello, all.

I have multiple versions of proxmox running. I'm trying to automate reporting and provide a dashboard that'll show which VMs and containers are running on which nodes.

On version 3 there is a very helpful one: "pvectl list". It shows all the data I'm after: VMID, Name, status, memory and Disk:

VMID NAME STATUS MEM(MB) DISK(GB)
104 server1.mynet.com stopped 1024 32.00
107 server2.mynet.com running 2048 32.00
108 server3.mynet.com running 2048 10.00

It looks like pvectl isn't available on my vers 4 nodes. Which command can I use to provide the above data?
Thanks