This commit is contained in:
2024-01-22 23:03:11 -06:00
parent 4026d91af3
commit 8123fa8129
2 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
#/bin/sh
echo "Putting the Host into maintenance mode ..."
vim-cmd hostsvc/maintenance_mode_enter
#vim-cmd hostsvc/maintenance_mode_enter
esxcli system maintenanceMode set -e true -t 0 &
VMS=`vim-cmd vmsvc/getallvms | grep -v Vmid | awk '{print $1}'`
for VM in $VMS; do