Navigation Menu

Skip to content

rhardouin/vmware_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vmware_scripts

vscsiStats.py

Python script to retrieve vscsiStats using the vSphere 5.5 API. VMWare vscsiStats is intended for storage performance analysis on ESXi host.

Usage

positional arguments:
  operation             Operation to perform [start|stop|reset|getstats]

optional arguments:
  -h, --help            show this help message and exit
  -s HOST, --host HOST  Remote host to connect to
  -P PORT, --port PORT  Port to connect on
  -u USER, --user USER  User name to use when connecting to host. Default:
                        root
  -p PASSWORD, --password PASSWORD
                        Password to use when connecting to host
  -o OUTPUT, --output OUTPUT
                        Output to a file
  -d, --display         Print results on standard output even if an output
                        file is specified.

Example

Start vscsi stats on ESXi host :

./vscsiStats.py --host ... -u admin -p passwd start

Save vscsi stats to a file :

./vscsiStats.py --host ... -u admin -p passwd --output vscsiStats.xml getstats

Stop vscsi stats on ESXi host :

./vscsiStats.py --host ... -u admin -p passwd stop

Don't forget to stop statistics collection since it implies an overhead on the ESXi host.

License

BSD 2-Clause license

About

vmware scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages