You can instruct your host to enter or exit maintenance mode with ESXCLI or with vicfg-hostops.