< Back

Get-iBMCDrivesHealth

Tue Jan 14, 2020 2:48 am

NAME Get-iBMCDrivesHealth



SYNOPSIS

Query health information about the Drive resources of a server.





SYNTAX

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





DESCRIPTION

Query health information about the Drive resources of a server including summary health status and every Drive

controller health status.





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 PSObject indicates Drive health status of server 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:\\> $health = Get-iBMCDrivesHealth -Session $session

PS C:\\> $health | fl



Host : 10.1.1.2

Summary : @{HealthRollup=OK}

ID#HDDPlaneDisk0 : @{Health=OK; State=; Name=Disk0}

ID#HDDPlaneDisk1 : @{Health=OK; State=; Name=Disk1}

ID#HDDPlaneDisk2 : @{Health=OK; State=; Name=Disk2}

ID#HDDPlaneDisk3 : @{Health=OK; State=; Name=Disk3}

ID#HDDPlaneDisk4 : @{Health=OK; State=; Name=Disk4}

ID#HDDPlaneDisk5 : @{Health=OK; State=; Name=Disk5}

ID#HDDPlaneDisk6 : @{Health=OK; State=; Name=Disk6}

ID#HDDPlaneDisk7 : @{Health=OK; State=; Name=Disk7}

ID#HDDPlaneDisk40 : @{Health=OK; State=; Name=Disk40}

ID#HDDPlaneDisk41 : @{Health=OK; State=; Name=Disk41}











RELATED LINKS

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



Get-iBMCDrives

Set-iBMCDrive

Connect-iBMC

Disconnect-iBMC