Getvmstree.py

From VI-Toolkit
Jump to navigation Jump to search

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