This topic contains 8 replies, has 3 voices, and was last updated by
August 6, 2017 at 10:26 pm #76791
I've got a hyper-v server where the CPU was overheating and, therefore, become unresponsive. I've since added fans to prevent this, but just in case it occurs again, I wanted to write a script that ran every few minutes, via a scheduled job, that checked the status of the LED, or some status on the motherboard, etc... to see if the CPU was overheating. If it was, then I would have the script do the following:
1. Send me an e-mail letting me know the CPU was overheating.
2. Shut down all the hyper-v VMs
3. Shut down the hyper-v server itself.
The part I'm needing help on, is what do I need to check that allows me to detect the overheat? I've checked Win32_BaseBoard, Win32_MotherBoardDevice, as well as under the ROOT\Hardware class, but not seen anything that indicates the overheat occurred. I'm guessing that's because the server has been shut down and restarted since the last overheat, so that information probably got wiped out. Any thoughts would be appreciated.
August 7, 2017 at 12:43 am #76794KeymasterPoints: 1,785Rank: Community Hero
You'll have to check with your vendor. Nearly none of them populate the core CIM or Win32 classes, nor do they surface the information directly to Windows. Usually, if they surface that information at all, it's through a device driver and a dedicated WMI namespace.
Frankly, most vendors don't surface that information in a way that PowerShell can get to it easily.
August 7, 2017 at 3:41 am #76816
Thanks Don. I was afraid of that.
August 7, 2017 at 7:46 am #76819
Not sure if this will help
August 7, 2017 at 9:07 am #76824
That's an awesome find. Unfortunately, my hyper-v server's motherboard/cpu doesn't support it....but my Surface computer does....lol. It looks like when a computer, like my hyper-v server, doesn't support it, you get the following error:
Get-WmiObject: Not supported
Thanks for looking into it for me. 🙂
August 7, 2017 at 9:16 am #76827
This may also help although not a powershell solution. If you spin up a ubuntu server on your VM you may be able to use this
August 7, 2017 at 9:35 am #76828
August 7, 2017 at 10:02 am #76833
Thanks, Simon. I went into the manual for my motherboard and found a URL to their own monitoring software. I'm going to check it out.
August 7, 2017 at 10:04 am #76834
np anytime. Your link looks promising
The topic ‘How to check for LED status on a motherboard?’ is closed to new replies.