Author: Marcos Fermin
This project connects to vCenter, checks for any existing snapshots on all VMs, and sends a report via email. It highlights snapshots that are older than 24 hours.
- Ubuntu Server with Python installed.
- pip installed.
- Access to vCenter.
- Clone this repository:
git clone https://github.com/marcosfermin/vcenter_vm_snapshot_report.git
cd vcenter_vm_snapshot_report- Run the
install_dependencies.shto install the necessary dependencies:
sh install_dependencies.sh- Set up the environment variable for the vCenter password:
export VCENTER_HOST=your_host
export VCENTER_USER=your_user
export VCENTER_PASSWORD=your_password- Add the
run_vm_snapshot_report.shscript to your crontab to run it daily at your preferred time.
Run the script manually:
sh run_vm_snapshot_report.shThis project is licensed under the MIT License - see the LICENSE file for details