Restart VM Host using command line

  • 22 Aug, 2016

One VM Server does not work today and the VMWare vSphere client was not an option form me today.  Several restrictions including bad internet connection using my cellphone.

The solution was using ssh to VMWare host an then using the command line to power off  and then power on the VM.

  1. List the inventory ID of the virtual machine with the command:

    vim-cmd vmsvc/getallvms |grep

    Note: The first column of the output shows the vmid.

  2. Check the power state of the virtual machine with the command:

    vim-cmd vmsvc/power.getstate

  3. Power-on the virtual machine with the command:

    vim-cmd vmsvc/power.on

More information on this TN from VMWare

Related Posts

Homepage Search: Profiles server fails while creating the initial index

  • 10 Sep, 2013

When trying to create the initial index for Global Search from the Homepage server, the index update fails with an error. To prevent further problems with indexing, perform a search in the Profiles d

Homepage Search: Profiles server fails while creating the initial indexRead More

Proud to be an HCL Ambassador 2021

  • 15 Dec, 2020

​If you have a problem, and no-one else can help, and if you can find them, maybe you can ask an HCL Ambassador… !(http://www.mysphere.com.br/wp-content/uploads/2020/12/HCLAmbassaborlight4x.png) See

Proud to be an HCL Ambassador 2021Read More

Nominate an IBM Champion

  • 30 Oct, 2019

IBM Champions demonstrate both expertise in and extraordinary support and advocacy for IBM technology, communities, and solutions. I am an IBM Champion since the first class  (2011) an this year i wi

Nominate an IBM ChampionRead More