Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

VMWare Reporter

Interact easily with your VMWare clusters.

Installation

VMWare Reporter package is published on PyPI:

pip install vmware-reporter

Optionaly, use specifier [excel] to also install dependencies for reading and writing Excel files:

pip install vmware-reporter[excel]

Configuration

Create file C:\ProgramData\vmware-reporter\.env (/etc/vmware-reporter/.env on Linux).

Example:

VMWARE_HOST = myvcenter.example.org
VMWARE_USER = reporter@vsphere.local
VMWARE_PASSWORD = ...
VMWARE_NO_SSL_VERIFY = False

Several scopes may be distinguished. Example for two scopes named SCOPE1 and SCOPE2:

VMWARE_SCOPES = SCOPE1,SCOPE2

VMWARE_SCOPE1_HOST = myvcenter1.example.org
VMWARE_SCOPE1_USER = reporter@vsphere.local
VMWARE_SCOPE1_PASSWORD = ...

VMWARE_SCOPE2_HOST = myvcenter2.example.org
VMWARE_SCOPE2_USER = reporter@vsphere.local
VMWARE_SCOPE2_PASSWORD = ...

Usage examples

See also full documentation (including API reference).

VMWare Reporter may be used as a library in your Python code:

from vmware_reporter import VCenterClient
with VCenterClient() as vcenter:
    for vm in vcenter.iterate_objs('vm'):
        print(vm.name)

VMWare Reporter may also be invoked as a command-line application (the vmware-reporter executable is installed with the package). Examples:

  • Export inventory of VMWare managed objects to a YAML file:
vmware-reporter inventory
  • Export all available information about VMWare managed objects to JSON files:
vmware-reporter export
  • Reconfigure VMs (mass operation): copy template vm_reconfigure.xlsx to data/vm_reconfigure.xlsx, fill-in this file, then:
vmware-reporter vm reconfigure
  • If you use several scopes, put files in data/SCOPE1/ instead of data/ and specify scope on the command line. Example:
vmware-reporter -e SCOPE1 vm reconfigure

Complete help about command-line usage may be displayed by typing:

vmware-reporter --help

Run every day (using a systemd timer)

Copy vmware-reporter.service, vmware-reporter.timer and notify-email@.service in /etc/systemd/system and adapt them to your configuration.

Run:

sudo systemctl daemon-reload
sudo systemctl enable vmware-reporter.timer
sudo systemctl start vmware-reporter.timer

Credits

This library leverages pyvmomi, the vSphere API Python bindings provided by VMWare.

Legal

This project is licensed under the terms of the MIT license.

This project is not affiliated in any way with VMWare or Broadcom.

Metadata

Release files for vmware-reporter 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for vmware-reporter 0.4.1
File Interpreter ABI Platform Actions
vmware_reporter-0.4.1-py3-none-any.whl Python 3 none any Details for vmware_reporter-0.4.1-py3-none-any.whl

Release files / vmware_reporter-0.4.1-py3-none-any.whl

Download URL vmware_reporter-0.4.1-py3-none-any.whl
Size 57.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
665d82fdc9c933fd9ad2a7ac7fcf0aa9aa9d15c2cb1d53f75e125b0317ee1479
BLAKE2b-256 checksum
How to use checksums
d789920368d1881a82db00c23079b6afc199a9220043f3abc6536dab908eea5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Security for vmware-reporter 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page