VMware {code} Community
twtb
Contributor
Contributor

monitoring instances and duplication

Is is possible to monitor running VM instances on a ESX server using the VIX API? I want to read current cpu usage and memory usage.

What functions do I need to achieve this?

If not, what is another possible solution?

Also, is duplication possiblie via the API? How can I do that?

0 Kudos
4 Replies
twtb
Contributor
Contributor

Anyone?

0 Kudos
admin
Immortal
Immortal

Hi twtb,

Corrently VIX does not provide statistics about VM resource usage. You should look at the vSphere API (such as the web service API, or the Java or Perl Toolkits).

Also, I'm not sure what you mean by duplication. Are you refering to the ability to clone a VM? That is also available via the vSphere API.

twtb
Contributor
Contributor

Hi mattrich,

Thanks for your answer! I indeed wan't to clone a VM.

Is there a C#.Net SDK available?

0 Kudos
admin
Immortal
Immortal

The web service has a WSDL that you can use to generate stub code in C#.

Please see: http://www.vmware.com/support/developer/vc-sdk/

There is also a PowerShell interface you can use, called the PowerCLI. To learn more, see: http://vmware.com/go/powercli.

0 Kudos