Highlighted
Contributor
Contributor

vSphere 6.0 Task and events notification

Hi ,

Is there a way where we can subscribe to the events and task status and vSphere can notify us when the event/task happens/completes.

My goal is to get the notifications from vSphere tasks and events , without having to poll for task/events from vSphere.  I am thinking of exposing an endpoint by extending the interface from vSphere management SDK (6.0)  and configure that endpoint in vSphere  , and get notified on tasks and events as it happens on vSphere instead of me polling the vSphere.

I am not sure if it is possible , any help/sample/documentation is appreciated.

Thanks

-Sada

0 Kudos
2 Replies
Highlighted
Enthusiast
Enthusiast

As far as I know polling is the only way to watch events.  You could write a program/script that continuously polls for specific events then sends an email to whomever you would like.  That seems like the most simple implementation to me.

Josh

0 Kudos
Highlighted
Hot Shot
Hot Shot

I was curious how to do this too, so I did some research. This is the first article I found that got me going in the right direction:

Getting Events or Notifications of Events as They Occur (1002651)

http://kb.vmware.com/kb/1002651

This then lead me to the vSphere API documentation.

Managed Object -  PropertyCollector > WaitForUpdatesEx

vSphere 6.0 Documentation Center

This presentation might also help:

Vmware vSphere Api Best Practices

Finally, it seems like someone else had a similar question:

How to WaitForUpdates on Events

Sending feedback to the KB article above might prompt a response from VMware.

0 Kudos