This sample code demonstrates some task with VCENTER by pyvmomi sdk python
- List all vm
- List detail one vm
- Limit IOPS vm
- Limit CPU vm
- Execute program in vm
- Get esxi performance, esxi cpu usage, esxi memory usage, esxi disk usage, esxi network usage,
- Samples can run on both window, linux by command line
- Library in: venv/Lib/site-packages/
Tested on Pythone 3.x, VCenter 7.0, Esxi 6.7
+ Command:
python <filename.py>
Config: Authenticated file: vc_info.ini in parent folder (../) or enter authenticated info in code (username of vcenter, pw...)