Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Re: Monitoring ESXI Performance Metrics over API

$
0
0

I found something that helped me to querie the esxi for the CET-time an it was working, it was a Python SDK for the ESXI API.

Here is an example script to querie for all vm-names in datacenter:

 

c = connect.ConnectNoSSL("192.168.1.100", 443, "root", "top-secret")

 

datacenter = c.content.rootFolder.childEntity[0]

vms = datacenter.vmFolder.childEntity

 

for i in vms:

    print(i.name)

 

That works perfectly. And for the time i had to do this:

 

print(c.CurrentTime())

 

 

But when i look at the docs here:

vSphere Web Services API - VMware API Explorer - VMware {code}

for example to querie the CPU info i dont know how to write the querie for that.

Can someone give me a reference or some example? Please


Viewing all articles
Browse latest Browse all 49146

Trending Articles



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