VMware Cloud Community
NikunjB
Contributor
Contributor

How to find out if my ESX cluster is undergoing rolling upgrade

Hi All,

I am in a need to find out if ESXs part of my cluster are undergoing rolling upgrade i.e, each ESX is being upgraded one by one (by some method). So that I can take precautionary measures for some of important applications running in "MyVM".

EX.
Cluster-1
-> ESX 1
-> ESX 2
-> ESX 3 ( "MyVM" resides here)

If a rolling upgrade has been started with "ESX 1", I need to get an intimation in "MyVM" that rolling upgrade for ESXs part of your cluster has been started.

Is this achievable from a Powercli program? Or any other vSphere SDK ?

Any pointers would be greatly appreciated.


Thanks

Nikunj

0 Kudos
1 Reply
LucD
Leadership
Leadership

One way of doing that would be to look at the events, that an upgrade will cause.

Have a look at Events – Part 7 : Working with extended events – Update Manager, to see if that answers your requirements.

You will need a scheduled script that checks for the presence of some selected events.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference