Settings of esx shutdown timer by day via command line

Asked By 0 points N/A Posted on -
qa-featured

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

SHARE
Answered By 5 points N/A #163130

Settings of esx shutdown timer by day via command line

qa-featured

 

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.

Related Questions