1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-27 03:30:00 -05:00
vsphere-automation-sdk-python/vsphere/samples/vcenter/setup
2017-01-16 21:24:30 -08:00
..
__init__.py remove samples/src folder 2017-01-16 21:24:30 -08:00
backend_directory.py remove samples/src folder 2017-01-16 21:24:30 -08:00
cluster.py remove samples/src folder 2017-01-16 21:24:30 -08:00
datacenter.py remove samples/src folder 2017-01-16 21:24:30 -08:00
datastore.py remove samples/src folder 2017-01-16 21:24:30 -08:00
floppy_image.py remove samples/src folder 2017-01-16 21:24:30 -08:00
folder.py remove samples/src folder 2017-01-16 21:24:30 -08:00
host.py remove samples/src folder 2017-01-16 21:24:30 -08:00
iso_image.py remove samples/src folder 2017-01-16 21:24:30 -08:00
main.py remove samples/src folder 2017-01-16 21:24:30 -08:00
network.py remove samples/src folder 2017-01-16 21:24:30 -08:00
README.md remove samples/src folder 2017-01-16 21:24:30 -08:00
setup_cli.py remove samples/src folder 2017-01-16 21:24:30 -08:00
testbed_setup.py remove samples/src folder 2017-01-16 21:24:30 -08:00
testbed.py remove samples/src folder 2017-01-16 21:24:30 -08: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-/client/bin $ ./run_sample.sh ../samples/src/vsphere/samples/vcenter/setup/main.py -st
  • Run the vAPI vCenter sample suite: $ ./run_sample.sh ../samples/src/vsphere/samples/vcenter/setup/main.py -rit

  • To check available options: $ ./run_sample.sh ../samples/src/vsphere/samples/vcenter/setup/main.py -h