Skip to main content

A CLI utility to return various info from the Proxmox API.

Project description

proxmox-info

PyPI - Version PyPI - Python Version License: GPL v3

A CLI utility to return various info from the Proxmox API.

Currently, it only reports storage vs machines info.

Table of contents

Features

  • Per-datastore VM/container listing — see which QEMU VMs and LXC containers live on each storage volume
  • Two output modes — clean table view or hierarchical tree view
  • Multiple node support — aggregates across all Proxmox nodes in your cluster
  • Status filtering — show only running machines, stopped machines, or all
  • Human-readable output — automatic formatting of sizes and uptimes via --human
  • Pager support — pipe through your system pager with --pager
  • Config file or CLI args — YAML config with Dynaconf, or override everything on the command line

Purpose and uses

Ever needed to get a list of VMs or containers per datastore?

Why? Perhaps you need to shutdown that storage for maintenance, upgrades etc., and need to move all running machines off it (a la vSphere storage vMotion).

Then this is the tool for you.

Screenshots

Default table view — VMs and containers listed per datastore with status, CPU, memory, disk, and network columns:

Default table view showing VMs grouped by storage

Tree view — hierarchical display of node > storage > machine type > machine details:

Tree view showing node hierarchy

Installation

The recommended way to install proxmox-info is to use pipx.

After getting pipx installed, simply run:

username@proxmox:~$ pipx install proxmox-info

Please don't use pip system-wide.

You can of course also install it using classic virtualenvs.

Configuration

Overview

proxmox-info is configured with a YAML-style file. An example:

host: zzz
user: zap
password: some_password

Location

The default location for the configuration is /etc/proxmox_info.yml, or proxmox_info.yml in the current working directory, but this can also be specified on the commandline.

If a non-absolute path is given, Dynaconf will iterate upwards: it will look at each parent up to the root of the system. For each visited folder, it will also try looking inside a /config folder.

Supported versions

proxmox-info supports the following VE versions:

VE version Debian version Python version VE EoL
8 12 (Bookworm) 3.11 TBA
7 11 (Bullseye) 3.9 2024-07

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxmox_info-1.1.1.tar.gz (248.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxmox_info-1.1.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file proxmox_info-1.1.1.tar.gz.

File metadata

  • Download URL: proxmox_info-1.1.1.tar.gz
  • Upload date:
  • Size: 248.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.5 HTTPX/0.28.1

File hashes

Hashes for proxmox_info-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e53dd1d70db268ca5b5f8784d7492c4e6cb5ce294c97151fa415fcd297551fcc
MD5 79a47e3480f8971f8f1b311c2fbb039d
BLAKE2b-256 d3b990963b1db7d29c0b8ba2b5234e927681e5d38309663988d88c8387269c06

See more details on using hashes here.

File details

Details for the file proxmox_info-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: proxmox_info-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.14.5 HTTPX/0.28.1

File hashes

Hashes for proxmox_info-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46a86a7ffb85fdfbfff40a7bccc55e5f9fed9b6411878592f7ccee5482fad6b8
MD5 108748eb2fa48e90877186e56c42d923
BLAKE2b-256 445ee696c471be27faa193ad401d7935d55f9fca8e21c2555a04fe3e6fc7e018

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page