1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-26 11:19:59 -05:00

Update README.md

This commit is contained in:
Tianhao He 2017-02-03 15:54:36 -08:00 committed by GitHub
parent 68d4480ecc
commit 7e75730fc5

View File

@ -66,13 +66,13 @@ Before executing the samples we'll need to setup the vSphere test environment us
First, from the command line change to the SDK ./bin folder.
```
```cmd
$ cd /path/to/vsphere-automation-sdk-python-samples/bin
```
Next, using a text editor open ../samples/vsphere/vcenter/setup/testbed.py and edit the following settings replace everything in < > brackets with your environment information. Leave the rest of the settings in this file at their default values.
```
```python
config["SERVER"] = "<vcenter_hostname_or_ip>"
config["USERNAME"] = "<vsphere_username>"
config["PASSWORD"] = "<vsphere_password>"
@ -107,14 +107,14 @@ This script will perform the following:
**To view the available command-line options:**
```
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -h
```cmd
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -h
```
**To run the setup script:**
```
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -sv
```cmd
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -sv
```
After completion you will see from the output and also the vSphere Webclient that the environment has now been fully setup and is ready to easily run further samples.
@ -124,8 +124,8 @@ This SDK includes a sample script which can be used to perform a number of actio
**Run the vAPI vCenter sample suite:**
```
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -riv
```cmd
$ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -riv
```
## API Documentation