Skip to content

This Python script allows you to fetch the inventory of virtual machines from VMware vCenter, including custom attributes.

Notifications You must be signed in to change notification settings

AshkanRafiee/VMware-VM-Inventory-Fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

VMware VM Inventory Fetcher

This Python script allows you to fetch the inventory of virtual machines from VMware vCenter, including custom attributes.

Usage

  1. Clone the repository:
git clone https://github.com/your-username/vmware-vm-inventory-fetcher.git
cd vmware-vm-inventory-fetcher
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the script:
python get_details.py
  1. Follow the prompts to enter your vCenter hostname/IP, username, and password.
  2. Optionally, you can choose to fetch custom attributes as well.
  3. The script will fetch the VM inventory and save it to vminfo.json in the current directory.

Configuration

You can configure the script by modifying the following variables in get_details.py:

  • ignore_ssl: Set to True if using self-signed certificates.
  • fetch_custom_attributes: Set to True if you want to fetch custom attributes.

About

This Python script allows you to fetch the inventory of virtual machines from VMware vCenter, including custom attributes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages