Quantcast
Channel: VMware Communities : Discussion List - Virtual Machine, Guest OS and VM Tools
Viewing all articles
Browse latest Browse all 1961

CPU Usage & Memory Utilisation VimService Connect Method Error

$
0
0

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).

 

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?


Viewing all articles
Browse latest Browse all 1961

Trending Articles