Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178097

How to start?

$
0
0

Hello,

I'm new to python and I'm starting using it to automate some common  vcenter/esxi tasks

I've downloaded and installed python 3.6 for windows

I've downloaded and installed git 2.12 for windows

I've installed pyvmomi using: pip install pyvmomi

I've imported pyvmomi-community-samples using git clone https://github.com/vmware/pyvmomi-community-samples.git

I see the samples into C:\Users\Administrator\pyvmomi-community-samples

 

Now it's time to start but I do not know (and I do not find doc) how to start with a basic script that, for example, lists all the VMs in my vcenter/host.

How to do it?


Viewing all articles
Browse latest Browse all 178097

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>