Getvmstree.py

From VI-Toolkit
Revision as of 08:58, 30 January 2014 by Wila (talk | contribs) (Created page with "=== 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 ==== ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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