arpan_c
Contributor
Contributor

Directly check if esx host is in maintainance mode

Jump to solution


Hi,

I need to know whether there is any api in vi java which can let us know if any esx host is currently in maintainance mode ?

I know there is a way to find this out through even monitoring using EventManager,I need to know is there a direct api which can let us know if the esx host is in maintaince at that very moment?

Thanks & Regards,

Arpan Chaudhuri.

0 Kudos
1 Solution

Accepted Solutions
togtog
Hot Shot
Hot Shot

Hi Arpan,

I guess the following property is what you are looking for: HostSystem.runtime.inMaintenanceMode

But pay attention to the property's docs as it reads there: It is not set during the entering phase of maintenance mode.

--

Thomas G.

Thomas G.

View solution in original post

0 Kudos
3 Replies
togtog
Hot Shot
Hot Shot

Hi Arpan,

I guess the following property is what you are looking for: HostSystem.runtime.inMaintenanceMode

But pay attention to the property's docs as it reads there: It is not set during the entering phase of maintenance mode.

--

Thomas G.

Thomas G.
0 Kudos
arpan_c
Contributor
Contributor

Hi Thomas,

Thanks a lot for your answer.

Thanks & Regards,

Arpan Chaudhuri.

0 Kudos
togtog
Hot Shot
Hot Shot

Hi Arpan,

Welcome and please if you feel your question is answered also kindly mark it as answered 😉

Happy coding

--

Thomas G.

Thomas G.