Has anyone used the HP Array Configuration Utility Command Line Interface (hpacucli.exe) to get physical disk information into a file?
I'm not at the machine right now, but basically I want to find out what the state of each of the physical disks in my server, i.e. Good, Failed, Failure predicted, Rebuilding, missing etc.
I want to run this from a script, so a single (or set of) commands I can pipe to a file is what I'm looking for.
My favorite example:
This can be run from the shell or within the tool.
hpacucli ctrl all show config
(use hpacucli.exe for Windows)Or
hpacucli ctrl all show config detail
But, if you have the HP Management Agents installed anyway, you should have realtime monitoring of RAID status pushing back to email alerts or an external monitoring system. Either way, this can generate a point-in-time output/status.
I understand you use windows OS on your host. Please find list of useful commands for hpacucli for Linux. You might find some of them useful anyway.
show disk physical info
show disk logical info
BBU Controller info
switch on disk ID light
some other ...
There are already existing monitoring scripts that do this (for Nagios for example).
Here is how it would work (adjust controller ID accordingly):