2016-10-26 19:08:23 -04:00
|
|
|
This directory contains sample scripts to setup the testbed required to run
|
|
|
|
the vCenter APIs samples. You can also use main.py to run all the samples
|
|
|
|
inside the vcenter.vm package.
|
|
|
|
|
|
|
|
* Testbed Requirement:
|
|
|
|
- 1 vCenter Server
|
|
|
|
- 2 ESX hosts
|
|
|
|
- 1 NFS datastore with at least 3G free capacity.
|
|
|
|
|
|
|
|
* Prepare testbed using setup script:
|
|
|
|
- Edit testbed.py with your settings. In particular, you need to set the IP addresses and credentials in this file.
|
|
|
|
$ cd /path/to/VMware-vSphere-Automation-SDK-Python-<version>/client/bin
|
2017-01-24 00:41:09 -05:00
|
|
|
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -st
|
2016-10-26 19:08:23 -04:00
|
|
|
|
|
|
|
* Run the vAPI vCenter sample suite:
|
2017-01-24 00:41:09 -05:00
|
|
|
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -rit
|
2016-10-26 19:08:23 -04:00
|
|
|
|
|
|
|
* To check available options:
|
2017-01-24 00:41:09 -05:00
|
|
|
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -h
|