VMware {code} Community
gilesm
Contributor
Contributor

Monitoring VM adds/removes and their property changes

I'm looking into implementing C# code that watches for the addition and removal of VMs (any managed entity in general). I'd also like to monitor property updates to the set of VMs that I'm already monitoring. It sounds like I need the following:

  • Use the ContainerView object to monitor for new/deleted VMs for each Datacenter in my environment..

  • Each time a VM is added/removed in the above ContainerView, update a ListView object which monitors a set of properties for those VMs it monitors.

Am I way off base here? Is there a C# sample lying around somewhere that might help push me in the right direction? Thanks in advance.

- Mike

0 Kudos
0 Replies