Skip to main content

Simple app to collect information from vSphere

Project description

rvtools python

Application to be executed on Linux and collect all information from vCenter

The idea is to be a similar application as RVTools [1] the main difference is, the application from website was designed to be executed only on MS platform, this version will be written in python 3.x so will be possible execute on Linux environment.

About the final result, the idea is generate one similar output CSV files.

The point here is not about COPY but just improve the Python skill and use the project [1] as reference once this one is a fantastic product !!!

Thank you and feel free to request Features / Enhancements.

Ps.: Necessary python 3.6 or greather. Improving the code to be supported by 2.7 as well

How to use??

First, install the python module

$ pip install rvtools-python

Now it's time to execute it.

$ rvtools

On the first run, will be created the file ~/.rvtools.conf

vcenter=<fqdn>
username=<vcenter username>
password=<password>
directory=<directory>

You can just update the information on the file to be seamless and generate all reports without ask you the password again or you are able to pass the information all the time as parameter

$ rvtools --help
usage: rvtools [-h] [-s HOST] [-u USERNAME] [-p PASSWORD] [-d DIRECTORY]
               [-v VERBOSE]

RVTools Python parameters

optional arguments:
  -h, --help            show this help message and exit
  -s HOST, --host HOST  vCenter server to connect to
  -u USERNAME, --username USERNAME
                        vCenter username
  -p PASSWORD, --password PASSWORD
                        vCenter username password
  -d DIRECTORY, --directory DIRECTORY
                        Directory where will be saved all csv files. Should be
                        empty
  -v VERBOSE, --verbose VERBOSE
                        Show additional info.
$

The result will be the csv file created on the directory defined on the conf file by directory=<directory> or via CLI by -d DIRECTORY.

vinfo.csv
...

Hope you enjoy it. Still working to improve/add all features. Feel free to send your feedback or just submit the new Issue here.

Best Waldirio

[1]. https://www.robware.net/rvtools/

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

rvtools_python-1.0.0.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

rvtools_python-1.0.0-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

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