search a host

Jul 14, 2009 at 2:12 PM

are there any functions to search a host for the LUNS/VM's?

 

thanks

 

alex

 

Coordinator
Jul 14, 2009 at 3:58 PM

I think you're looking for VMWareVirtualHost.RegisteredVirtualMachines and VMWareVirtualHost.RunningVirtualMachines. Note that those are yield iterators in the implementation - they don't fetch the entire list at once but only as you iterate over them.

public IEnumerable<VMWareVirtualMachine> RegisteredVirtualMachines { get; }
public IEnumerable<VMWareVirtualMachine> RunningVirtualMachines { get; }
Jul 15, 2009 at 8:32 AM

hmm, that sounds like exactly what im after but it'll have to wait for another day as I think its outside my coding abilities at the moment :)

 

Aug 10, 2009 at 9:14 AM

ok, so it seems that this is a function i need to explore, do you have any code snippets where you have implemented these two for VI3....it be a big help if I had so reference to work from.

 

thanks

 

alex