< Back

Clear-iBMCSPRAIDSetting

Tue Jan 14, 2020 2:42 am

NAME Clear-iBMCSPRAIDSetting



SYNOPSIS

Clear current RAID setting of the SP service.





SYNTAX

Clear-iBMCSPRAIDSetting [-Session] <RedfishSession[]> -Location <String[]> -DeviceName <String[]> [-CardModel

{LSI3008}] [<CommonParameters>]





DESCRIPTION

Clear current RAID setting 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



-Location <String[]>

Indicates the location information of the RAID controller card. For example: mainboard.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-DeviceName <String[]>

Indicates the Silkscreen of the RAID controller card. For example: RAIDStorage0.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-CardModel

Indicates the RAID controller card mode.

Currently, Only 'LSI3008' is support.



Required? false

Position? named

Default value LSI3008

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

Null

Returns null 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:\\> Clear-iBMCSPRAIDSetting $session -Location mainboard -DeviceName RAIDStorage1

PS C:\\>

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

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

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











RELATED LINKS

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



Get-iBMCSPRAIDSetting

Export-iBMCSPRAIDSetting

Set-iBMCSPRAIDSetting

Add-iBMCSPRAIDVolume

Connect-iBMC

Disconnect-iBMC