Quantcast
Viewing all articles
Browse latest Browse all 6251

Starting out with vCO: unable to return list of VMs with VcPlugin.getAllVirtualMachines()

Hi,

I'm following this blog to get my feet wet with vCO but it doesnt seem to return the list of all VMs:

 

Blog:

Automatically Securing Virtual Machines Using vCenter Orchestrator | VMware vSphere Blog - VMware Blogs

 

What I'm using: vCO Appliance 5.5 with vCenter 5.5/ESXi 5.5

 

Whats happening?

From the policy log, SNMP traps are being received just fine but the VM cannot be located from the inventory. I tried editing the policy to return the number of items in the array that is received from VcPlugin.getAllVirtualMachines() and it's returning as 0.

 

Not sure what else to do. Do i need to manually connect to vCenter from within the script? From the example in the blog, he just did straight apply / run policy so not sure what gives.

 

Thanks.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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