I have a HP server with Raid 5. Port 0 and 1 are used for data & OS mirroring. The software come with the Raid 5 is Intel Matrix Storage Manager and there is manager console as windows based api to view all the ports, including their status.
Now they are all in Normal status. I am not sur开发者_如何学编程e if the OS/Windows has some APIs or .Net classes to access raid ports and get their status? If so, how can I use PS to get the information? Do I have to reference to the dlls provided by the Intel Matrix Storage Manager if not?
Basically, I would like to write a PS script to get read status. In case any of port disk is not normal, a message will be sent out by growl protocol.
The HP servers I've used come its own management software in the form of HP System Insight Manager. Insight Manager has both a a web and command-line interface. Details on all H/W health including disks are provided. There is also a backend consolidated SQL database you can stand up. I'm not sure if HP charges extra for this or its part of their server offering. In any case I would recommend looking into SIM.
$raidvalues = get-wmiobject -class win32_systemdriver | where-object {$_.displayname -like "*mraid*"}
$rStatus = $raidvalues.Status
We use this to check for status of RAID controllers on a Dell PowerEdge. You may have to find the correct name to replace *mraid*
. Hope the idea helps.
精彩评论