datacenter level command line tools (like list all CTs)

grin

Renowned Member
Dec 8, 2008
159
16
83
Hungary
grin.hu
Is there a way to do datacenter (multinode) level tasks, apart from HA tools, from the command line?
Like:
  • list all the containers on all nodes
  • migrate one vm from a node to another
  • ..etc?
 
short answer: not really

long answer: pvecm and pvesm sometimes operate on the whole cluster or rather files in /etc/pve which are used by the whole cluster, depending on the actual command. pct and qm are always related to the current node, but some commands have a target node parameter as well.

most of the information is in /etc/pve, so for read-only access you can just read and parse what is in there. if you want to change stuff, you should use the appropriate tool/API path, because then you need to take care of locking and concurrency.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!