Quantcast
Channel: VMware Communities : Popular Discussions - VMware ESX 4
Viewing all articles
Browse latest Browse all 36074

How to trace "Discovered Virtual Machine" through VI SDK 4

$
0
0

Hi All

 

I have used the below piece of code

 

ManagedObjectReference vmFolderRef = (ManagedObjectReference)getObjectProperty(datacenterRef, "vmFolder");

            // Find the virtual machine list from the virtual machine folder found above.

            ManagedObjectReference[] vmList = (ManagedObjectReference[])getObjectProperty(vmFolderRef, "childEntity");

 

but i am not getting the entire list of Virtual Machine on my Vcenter ,

 

when I open my VCenter console through Vpshere Client , I can see there a folder name Discovered Virtual Machine and my code is not able to find all the VMs under this folder

 

Can anyone suggest where i have to change the code or what keyword I have to pass instead of "vmFolder"

 

Its really Urgent


Viewing all articles
Browse latest Browse all 36074

Trending Articles



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