Getvmstree.py

From VI-Toolkit
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

getvmstree.py

author: Timo Sugliani

Description

List all of the VMs in a tree similar to how it looks like in the Web client inventory.

Usage

python getvmstree.py -s vcsa.myserver.local -u user -p password

Location

http://blog.tsugliani.fr/scripts-and-tips/pyvmomi-finally-vsphere-python-sdk/

and source is here:

https://github.com/tsugliani/pyvmomi/blob/master/sample/getvmstree.py