We have our vmware environment, and from that we are able to find out allocated memory & CPU through dot net API and we also want to find out its CPU and memory utilization (Max, Min, Avg). But, we are not able to find any methods or properties in dot net api (VCloudSDK_V5_5) So, I need dot net code sample to find out cpu & memory utilization in vmware environment. I looked every where but i couldn't find.
Any C# Code Sample?
we are trying with this code:
We implemented an example with reference of VimService dll, but we are not able to connect through it.
We are getting Error: Request Failed with error message...
Error In the below method on line (_sic = _service.RetrieveServiceContent(_svcRef);)
System.Net.ServicePointManager.CertificatePolicy = new Program();
//Gets service contents
_svcRef.type = "ServiceInstance";
_svcRef.Value = "ServiceInstance";
// _service is VimService
_service = new VimService();
_service.Url = url;
_service.CookieContainer = new CookieContainer();
// _sic is ServiceContent
_sic = _service.RetrieveServiceContent(_svcRef); // Error at this line
_service.LoginCompleted += new LoginCompletedEventHandler(_service_LoginCompleted);
_session = _service.Login(_sic.sessionManager, usid, pwd, null);
But, there is no error message. Can anyone help on this?