Hi All,
I had to develop an application that gets ESXi Server performance metrics like CPU usage, memory, network, disk read/write, etc.
I know a solution for this using VMware vSphere PowerCLI (vmware.vim.dll), the problem is every user have to download and install PowerCLI in order to use my application.
Is there any alternative solution solution for this? so that I can re-write my application wihtout using PowerCLI?
Thanks,
Kishore
ZENQA
sample code when we use Power CLI
VimClient
client = new VimClient();
client.Login("https://10.10.1.1/sdk", @"test\admin", "password");
NameValueCollection filter = new NameValueCollection();
IList<EntityViewBase> esxList = client.FindEntityViews(typeof(HostSystem), null, null, null);
foreach (HostSystem host in esxList)
{
string hostname = host.Name.ToString();
string version = host.Summary.Config.Product.FullName.ToString();
MessageBox.Show(hostname);
MessageBox.Show(version);
}