Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

VixHost_FindItems (Want more than just running VMs)

$
0
0

I have really been struggling with a pet project of mine. I need to connect to a VMWare Server host and get an inventory of all the Virtual Machines (not just the running VMs) in the server's inventory. Seems FindItems should be used for this, but docs say it is limited to VIX_FIND_RUNNING_VMS only. Should have just made a function called FindRunningVMs if this were going to be the case

 

I would love to keep everything VIX, so if there is something I am missing, please let me know. The only approach I can think of will limit me to Windows only (handles 90% of what I need). My approach will be to use WMI to get the All Users profile then return the contents of vm-list and parse it for an inventory. I am already using some WMI programming to initiate remote shadow copies for my backups so it is not a stretch, but not ideal either.

 

Any thoughts from anyone?

 

Thanks


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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