from the command line on ESX servers.
Enter:
vimsh -n -e /hostsvc/maintenance_mode_enter
Exit:
vimsh -n -e /hostsvc/maintenance_mode_exit
Check Status:
vimsh -n -e /hostsvc/runtimeinfo | grep inMaintenanceMode | awk ‘{print $3}’
note: this does not work on ESXi Continue reading