Asked By
qubba
0 points
N/A
Posted on - 08/19/2012
esx is a component of VMware Infrastructure. What will be the settings of esx shutdown timer by day via command line?
Settings of esx shutdown timer by day via command line
Â
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.