cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

psychozoic
Adept I

How to check RAID status on windows?

Hello, 

i found this utility: https://www.amd.com/en/support/kb/release-notes/rn-ryzen-raid-2-08-12-400 
but what i see it allows only to configure RAID... but how to retrieve status about state? 


0 Likes
1 Solution

ok, i found the way to do it:
SMART:

$rcadm = "C:\Program Files (x86)\RAIDXpert2\rcadm.exe"
$Status = & $rcadm -M -q -d *| Select-Object -Skip 12 | ForEach-Object {
    New-Object -Type PSObject -Property @{
        'Disk'        = [int]$_.Substring(0, 4).Trim()
        'State'      = $_.Substring(5, 8).Trim()
        'ModelNumber'     = $_.Substring(88, 26).Trim()
        'SN'     = $_.Substring(124).Trim()
    }
} | Select-String -Pattern "Online" -notMatch
 
if ( $Status ) {
  write-host "Failed: $STATUS" 
  exit 1
} 
else { 
  write-host "Status OK"
  exit 0
}

 

RAID:

$rcadm = "C:\Program Files (x86)\RAIDXpert2\rcadm.exe"
$Status = & $rcadm -M -q -a * | Select-Object -Skip 12 | ForEach-Object  {
    New-Object -Type PSObject -Property @{
        'Type' = $_.Substring(3, 8).Trim()
	'Task' = $_.Substring(69, 12).Trim()
    }
} | Select-String -Pattern "NOT_ACTIVE" -notMatch
 
if ( $Status ) {
  write-host "Failed: $STATUS" 
  exit 1
} 
else { 
  write-host "Status OK"
  exit 0
}

 

 

it is quite simple, but it fit my needs. 

View solution in original post

2 Replies
psychozoic
Adept I

it is installed on Asus B450-PRO

aida64 sees it as: AMD K17 SCH - SATA RAID Controller

0 Likes

ok, i found the way to do it:
SMART:

$rcadm = "C:\Program Files (x86)\RAIDXpert2\rcadm.exe"
$Status = & $rcadm -M -q -d *| Select-Object -Skip 12 | ForEach-Object {
    New-Object -Type PSObject -Property @{
        'Disk'        = [int]$_.Substring(0, 4).Trim()
        'State'      = $_.Substring(5, 8).Trim()
        'ModelNumber'     = $_.Substring(88, 26).Trim()
        'SN'     = $_.Substring(124).Trim()
    }
} | Select-String -Pattern "Online" -notMatch
 
if ( $Status ) {
  write-host "Failed: $STATUS" 
  exit 1
} 
else { 
  write-host "Status OK"
  exit 0
}

 

RAID:

$rcadm = "C:\Program Files (x86)\RAIDXpert2\rcadm.exe"
$Status = & $rcadm -M -q -a * | Select-Object -Skip 12 | ForEach-Object  {
    New-Object -Type PSObject -Property @{
        'Type' = $_.Substring(3, 8).Trim()
	'Task' = $_.Substring(69, 12).Trim()
    }
} | Select-String -Pattern "NOT_ACTIVE" -notMatch
 
if ( $Status ) {
  write-host "Failed: $STATUS" 
  exit 1
} 
else { 
  write-host "Status OK"
  exit 0
}

 

 

it is quite simple, but it fit my needs.