Command-line Tools¶
proxmox-datacenter-manager-client¶
This tool implements a datacenter manager client, i.e. it can connect to any datacenter manager with the same major version and issue management commands, query status and control remotes and their resources.
Commands that start a task on a Proxmox VE remote, for example pve qemu start, wait for the task
to end, as do updates refresh and subscriptions apply-pending for the task they start on the
Proxmox Datacenter Manager host. They exit with an error if the task failed, while a task that
finished with warnings counts as success. The task log commands with the --follow option
wait for a running task to end and set the exit status the same way. While waiting or following a
task, task log --follow, updates refresh, and subscriptions apply-pending renew the
authentication ticket automatically.
Commonly used subcommands and behaviors include:
Tasks:
task listqueries the remote task cache (default limit 50, pass--limit 0for unlimited results); filtering with--vmidrequires--remote.Updates:
updates summary [--view <view>]shows the cached update summary, andupdates refreshfetches current update summaries from enabled remotes without runningapt updateon them.Resources:
resourceslists cached resources and supports--max-age,--resource-type,--view, and--searchfilters.Proxmox VE guests:
pve qemu stopandpve lxc stopaccept--overrule-shutdownto abort an active shutdown task before stopping; this requires Proxmox VE 8.2 or newer and does not apply to HA-managed guests.Nodes:
pve node configandpve node set --description <text>inspect and edit node notes.pve node reboot|shutdownandpbs node reboot|shutdownprompt for confirmation on a terminal and return immediately without creating a task.
proxmox-datacenter-manager-admin¶
This tool exposes parts of Proxmox Datacenter Manager's administrative API on the local host.
In addition to ACME, certificate, support-status, system report, and package version administration, it provides:
Tasks:
task listlists local host tasks,task log <upid> [--follow]prints a task's log without timestamps (and with--followwaits for a running task to finish and exits non-zero unless it finished with OK or warnings), andtask stop <upid>stops a running task.Node options:
node showprints the current host options from/etc/proxmox-datacenter-manager/node.cfg, andnode update [--delete <option>]changes or clears them.Remotes:
remote update <id>accepts--disable <true|false>to disable or re-enable a remote and--delete <property>(web-urlordisable) to clear optional properties.