Quick restart ESXi service remotely

This situation arises quite often, specially when that hardware status tab on vCenter is not working and you need to follow this KB 1013080. Once again, having tons of ESXi affected will just lead you to use scripting.

This command will restart the sfcbd-watchdog service on every ESXi in the Datacenter named DC_NAME.

Get-Datacenter <DC_NAME> | Get-VMHost | % { Restart-Vmhostservice -Hostservice ( $_ | Get-vmhostservice | ? {$_.key -eq "sfcbd-watchdog"}) -Confirm:$False}

You can also be more conservative by using Get-Cluster instead.

Get-Cluster <Cluster_NAME> | Get-VMHost | % { Restart-Vmhostservice -Hostservice ( $_ | Get-vmhostservice | ? {$_.key -eq "sfcbd-watchdog"}) -Confirm:$False}

This is the outcome you’ll have if everything went well.

Key                             Label                          Policy     Running  Required
—                               —–                               ——     ——-     ——-
sfcbd-watchdog       CIM Server                     on         True     False
sfcbd-watchdog       CIM Server                     on         True     False

Buena Suerte !

EOL

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s