< Back

Get-iBMCSPRAIDSetting

Tue Jan 14, 2020 2:58 am

NAME Get-iBMCSPRAIDSetting



SYNOPSIS

Query the current RAID setting resource collection of the SP service.





SYNTAX

Get-iBMCSPRAIDSetting [-Session] <RedfishSession[]> [<CommonParameters>]





DESCRIPTION

Query the current RAID setting resource collection of the SP service.

This cmdlet only supports manage server with single "LSI3008" RAID card.

Note: Only the V5 servers with the BIOS version later than 0.39 and the SP version 113 or later support this

function.





PARAMETERS

-Session <RedfishSession[]>

iBMC redfish session object which is created by Connect-iBMC cmdlet.

A session object identifies an iBMC server to which this cmdlet will be executed.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

PSObject[][]

Returns an array of PSObject indicates current RAID setting resources of SP Service if cmdlet executes

successfully.

In case of an error or warning, exception will be returned.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$credential = Get-Credential



PS C:\\> $Session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> Export-iBMCSPRAIDSetting -Session $Session

PS C:\\> Set-iBMCSPService -Session $Session -StartEnabled $true -SysRestartDelaySeconds 60

PS C:\\> Set-iBMCServerPower -Session $Session -ResetType ForceRestart

PS C:\\> $Setting = Get-iBMCSPRAIDSetting -Session $Session

PS C:\\> $Setting



Host : 10.1.1.2

Id : mainboardRaidCard1

Name : SP RAID Current Configuration

CardModel : LSI3008

DeviceName : RAIDCard1

GlobalHotSpare : {5, 6}

Location : mainboard

DriveGroupList : {@{VolumeList=System.Object[]; VolumeRaidLevel=RAID1; Drives=System.Object[]}}



This example shows how to get SP-RAID setting from startup.

It contains several steps:

1. Export SP-RAID setting

2. Enable SP-Service

3. Restart Server (may take a long time, please be patience)

4. Get SP-RAID setting



If step 1,2,3 has be executed before, "Get-iBMCSPRAIDSetting" could be executed directly.











RELATED LINKS

https://github.com/Huawei/Huawei-iBMC-Cmdlets



Export-iBMCSPRAIDSetting

Set-iBMCSPRAIDSetting

Clear-iBMCSPRAIDSetting

Add-iBMCSPRAIDVolume

Connect-iBMC

Disconnect-iBMC