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?
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?