No of visitors who read this post: 227
Category: Server Software
Type: Question
Author: Qubba
No votes yet

esx is a component of VMware Infrastructure. What will be the settings of esx shutdown timer by day via command line?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#

Sometimes VMs are not responding for normal shutdown. In those cases it has to be shutdown forcibly. To do this you can use esxcli vm process kill command. 
First find out the World ID of the VM that you want to stop.
 
esxcli <conn_options> vm process list
 
Then stop the VM by running the following command.
 
esxcli <conn_options> vm process kill --type <kill_type> --world-id <ID>
 
Since the command supports three --type options you can the types sequentially 
(soft before hard, hard before force). 
 
The following types are supported through the --type option:
 
1. soft : This will make the VMX process a chance to shut down cleanly (like kill or kill -SIGTERM)
2. hard : This will make the VM to stop the VMX process immediately (like kill -9 or kill -SIGKILL)
3. force : This will stops the VMX process when other options do not work.
 
When all the above three options do not work, reboot your ESXi host to resolve the issue.