Possible to use Powershell to detect if an HP server has a bad drive?

I'm trying to use Powershell to detect certain hardware failures.

Can Powershell hook into normal HP events/logs/alerts to detect if a drive failed?


Sure. Look up the "hpssacli" utility. You can parse the output.

But the HP management agents eliminate the need to roll-your-own. The server logs this, sends SNMP traps and can email you.

What's your ultimate goal?