You place a host in maintenance mode to service it, for example, to install more memory. A host enters or leaves maintenance mode only as the result of a user request.
esxcli system maintenanceMode set allows you to enable or disable maintenance mode.
When you run the vicfg-hostops vCLI command, you can specify one of the options listed in Connection Options for vCLI Host Management Commands in place of <conn_options>.