Pyvmomi: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
|||
| Zeile 7: | Zeile 7: | ||
=community samples= | =community samples= | ||
*git clone https://github.com/vmware/pyvmomi-samples | *git clone https://github.com/vmware/pyvmomi-samples | ||
=first test= | |||
*cd pyvmomi/sample | |||
=getallvms= | |||
*getallvms.py --host esxi-01.xinux.org --user root --pass secret | |||
Name : db-testsystem | |||
Path : [geldspeicher] db-testsystem/db-testsystem.vmx | |||
Guest : Ubuntu Linux (64-bit) | |||
State : poweredOn | |||
IP : 10.81.1.39 | |||
Version vom 29. September 2020, 07:01 Uhr
install
- pip install pyvim
or
- pip3 install pyvim
samples
- git clone https://github.com/vmware/pyvmomi
community samples
first test
- cd pyvmomi/sample
getallvms
- getallvms.py --host esxi-01.xinux.org --user root --pass secret
Name : db-testsystem Path : [geldspeicher] db-testsystem/db-testsystem.vmx Guest : Ubuntu Linux (64-bit) State : poweredOn IP : 10.81.1.39