VMware Cloud Community
zhangfred_vm
Contributor
Contributor
Jump to solution

How to restart the management service of the esxi remotely

Hi Friends,

The console of the ESxi Server is holding on the "Starting managment service " screen,  we can't enter the ESXi console.

So how to restart the management serivce of the ESXi remotely?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
Dave_Mishchenko
Immortal
Immortal
Jump to solution

If you can connect to the host you can then run this:  Get-VMHost | Foreach { Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )}

View solution in original post

0 Kudos
6 Replies
Dave_Mishchenko
Immortal
Immortal
Jump to solution

Do you have tech support mode (local or SSH) enabled?  If so you can run services.sh restart  or get to the logs to see what is hung.  If you press ALT+F12 at the console do you see any errors?

0 Kudos
zhangfred_vm
Contributor
Contributor
Jump to solution

Can't enter the service console from the ssh, the tech support mode is not open, how to open it remotely?

thank you.

0 Kudos
Dave_Mishchenko
Immortal
Immortal
Jump to solution

You can do it with the vSphere client (which I assume is probably not working? ) or you can do it with PowerCLI. But PowerCLI would require that the API be working on the host.

0 Kudos
zhangfred_vm
Contributor
Contributor
Jump to solution

thanks,

I install the powercli, cut can't find the vmware-vim-cmd commands to open the ssh in the esxi server.

0 Kudos
Dave_Mishchenko
Immortal
Immortal
Jump to solution

If you can connect to the host you can then run this:  Get-VMHost | Foreach { Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq "TSM-SSH"} )}

0 Kudos
zhangfred_vm
Contributor
Contributor
Jump to solution

Thank you.

0 Kudos