vimsh -n -e /hostsvc/maintenance_mode_enter进入vimsh -n -e /hostsvc/maintenance_mode_exit退出vimsh -n -e'hostsvc/hostsummary' | grep inMaintenanceMode 状态查询