VMware Cloud Community
RobMokkink
Expert
Expert
Jump to solution

reset sensors

After applying patches to esx 3.5 in our lab, the hardware sensors are stuck.

I need to reset them, is there a way to do that with powershell?

0 Kudos
1 Solution

Accepted Solutions
ykalchev
VMware Employee
VMware Employee
Jump to solution

Actually you can try ResetSystemHealthInfo method of the HostHealthStatusSystem manager. I think this is the method you're looking for.

$hostView = Get-VMHost myHost | Get-View
$healthStatusSystem = Get-View $hostView.ConfigManager.HealthStatusSystem
$healthStatusSystem.ResetSystemHealthInfo()

/Yasen

Yasen Kalchev, vSM Dev Team

View solution in original post

0 Kudos
5 Replies
djciaro
Expert
Expert
Jump to solution

you can reset sensors from the VI Client

7635_7635.JPG

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
0 Kudos
RobMokkink
Expert
Expert
Jump to solution

I know you can do that with the vi client. But i wan't to do it with powershell.

0 Kudos
djciaro
Expert
Expert
Jump to solution

CLI does not provide support for hardware sensor actions

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
0 Kudos
ykalchev
VMware Employee
VMware Employee
Jump to solution

Actually you can try ResetSystemHealthInfo method of the HostHealthStatusSystem manager. I think this is the method you're looking for.

$hostView = Get-VMHost myHost | Get-View
$healthStatusSystem = Get-View $hostView.ConfigManager.HealthStatusSystem
$healthStatusSystem.ResetSystemHealthInfo()

/Yasen

Yasen Kalchev, vSM Dev Team
0 Kudos
RobMokkink
Expert
Expert
Jump to solution

HI Yasen,

That was exactly what i was looking for. Thanks!

0 Kudos