Can I get the status of a Raid drive using PS?

I have an HP server with Raid 5. Port 0 and 1 are used to mirror data and the OS. The software comes with Raid 5 - this is Intel Matrix Storage Manager, and the administrator console - as api for windows, for viewing all ports, including their status.

Now they are all in good condition. I'm not sure if OS / Windows has some APIs or .Net classes for accessing raid ports and getting their status? If so, how can I use PS to get information? Should I refer to DLLs provided by Intel Matrix Storage Manager, if not?

Basically, I would like to write a PS script to get the reading status. If any of the port drives is not normal, the message will be sent by the growl protocol.

+1
source share
2 answers

The HP servers I used on have their own management software in the form of the HP System Insight Manager. Insight Manager has both a web interface and a command line interface. Provides information about all H / W, including discs. There is also a consolidated SQL database that you can get into. I'm not sure if HP charges an additional fee for this or for part of its server. In any case, I would recommend looking at the SIM card.

+1
source
    $raidvalues = get-wmiobject -class win32_systemdriver | where-object {$_.displayname -like "*mraid*"}
    $rStatus = $raidvalues.Status

RAID- Dell PowerEdge. , *mraid*. , .

0

Source: https://habr.com/ru/post/1759545/


All Articles