VMware Cloud Community
BWinchell
Enthusiast
Enthusiast

Report All VM objects in environment and email a CSV file (with extended info)

Hello,

Last year I need a report to be run that told me every VM object in my environment with some extended details (location, cluster, vmdks, etc...).  Burke helped me on that one to get working (https://communities.vmware.com/message/2353557#2353557).

The one issue I found was the VCO built-in action "com.vmware.library.vc.datacenter.getAllVMsOfDatacenter" does not pick up vapps and templates.

I have basically removed that action and replaced it with the "com.vmware.library.vc.vm.getAllVMs".  This seems to get all the objects I want.  The one thing I have not tested with this workflow is "Does it capture VM objects with multiple vCenters?"

Can someone test this out and report back if it works or not.

Thanks

B

0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee

OK, I haven't tested your workflow, but I looked at the Java source code of VcPlugin.getAllVirtualMachines() method (which is what the action com.vmware.library.vc.vm.getAllVMs does call) and can confirm that it retrieves VM objects from all registered vCenter instances.

0 Kudos