Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

vmware.vim slow listing of folders/machines

$
0
0

Hey. i'm doing a .net application that lists our 160+ servers in a treeview...

First i get the datacenter using FindEntityViews, then i iterate each Child (non recursive) to list all folders using getView. on user expand folder i load all the Children of the folder.

 

this is all extremely slow. each action takes a few seconds.

 

I also tried finding all vm's directly. this is way faster. it lists all the Machines in less than 2 seconds. but, then i cant get the folders without using getview on parent objects, and then it will slow down even more.

 

Basically, all i want to do is create a treeview, almost like the one in vmware workstation where you see the datacenter, folders and Machines. i do limit the properties to just the needed objects (name, Childentity for folders, name, summary for Machines).

 

The goal of the application is to select a machine, check what ports are open, and enable buttons to launch winscp, putty, vmware, remote desktop or web GUI depending on those ports. Making management of servers faster.

 

Any ideas how to speed this up? Using the precompiled .net VIM DLL from powercli.

 

Regards Fredrik

 


Viewing all articles
Browse latest Browse all 2738

Trending Articles



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