- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The reason for this is the function itself has an option to do a force shutdown/reboot and by default the hostops.pl script does not do a forceful shutdown/reboot. That is why you need to suspend your VMs and by default if it finds powered on VMs and you're not suspending them, the script will not execute through.
RebootHost_Task() http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.HostSystem.html#reboo...
ShutdownHost_Task() http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.HostSystem.html#shutd...
You can definitely write your own shutdown/reboot script that does exactly what you want, whether that is to forcefully shutdown/reboot the host, or suspend your Vms automatically and then reboot/shutdown. The force is what is forcing you to put the host in maintenance mode, so that can be easily overwritten.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
![]()
If you find this information useful, please award points for "correct" or "helpful".