將主機置於維護模式
# vimsh -n -e /hostsvc/maintenance_mode_enter
# vim-cmd /hostsvc/maintenance_mode_enter
退出維護模式:
# vimsh -n -e /hostsvc/maintenance_mode_exit
檢查主機是否在維護模式
# vim-cmd /hostsvc/hostsummary | grep inMaintenanceMode
或者
# vimsh -n -e /hostsvc/hostsummary | grep inMaintenanceMode
分享幾個對主機執行關機重啟操作的命令:
# reboot -f
# halt
# shutdown