Thank both of you for the fast answer.
However I have two separate esxi without any drs or migration feauture. There is a common ups for both of them. When the main power lost in the midnight I want a mechanism to shutdown all the guests and both of host.
In my case I think there is no benefit from putting maintenance mode, so I will just nicely shutdown the guests then the host.
thank you very much