Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashkanrafiee/vmware-vm-inventory-fetcher
This Python script allows you to fetch the inventory of virtual machines from VMware vCenter, including custom attributes.
https://github.com/ashkanrafiee/vmware-vm-inventory-fetcher
Last synced: about 5 hours ago
JSON representation
This Python script allows you to fetch the inventory of virtual machines from VMware vCenter, including custom attributes.
- Host: GitHub
- URL: https://github.com/ashkanrafiee/vmware-vm-inventory-fetcher
- Owner: AshkanRafiee
- Created: 2024-03-06T07:06:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-02T10:38:19.000Z (8 months ago)
- Last Synced: 2024-04-02T12:43:49.061Z (8 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/your-username/vmware-vm-inventory-fetcher.git
cd vmware-vm-inventory-fetcher
```2. Install dependencies:
```bash
pip install -r requirements.txt
```3. Run the script:
```bash
python get_details.py
```
4. Follow the prompts to enter your vCenter hostname/IP, username, and password.
5. Optionally, you can choose to fetch custom attributes as well.
6. 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.