< Back

Get-iBMCPowerSupplies

Tue Jan 14, 2020 2:53 am

NAME Get-iBMCPowerSupplies



SYNOPSIS

Query information about the power supply resource collection of a server.





SYNTAX

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





DESCRIPTION

Query information about the power supply resource collection of a server.





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 all power supply resources 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:\\> $PowerSuppliesArray = Get-iBMCPowerSupplies -Session $session

PS C:\\> $PowerSuppliesArray



Host : 10.1.1.2

FirmwareVersion : DC:108 PFC:107

LineInputVoltage : 0

Manufacturer : LITEON

MemberId : 0

Model : PS-2152-2H

Name : PS1

PartNumber : 02131336

PowerCapacityWatts : 1500

PowerSupplyType :

Redundancy : {@{@odata.id=/redfish/v1/Chassis/1/Power#/Redundancy/0}}

SerialNumber : 2102131336CSJ3005736

Status : @{State=Enabled; Health=OK}

ActiveStandby : Active

DeviceLocator : PS1

InputAmperage : 0

OutputAmperage : 0

OutputVoltage : 0

Position : chassis

PowerInputWatts : 0

PowerOutputWatts : 0

Protocol : PSU



Host : 10.1.1.2

FirmwareVersion : DC:108 PFC:107

LineInputVoltage : 225

Manufacturer : LITEON

MemberId : 1

Model : PS-2152-2H

Name : PS2

PartNumber : 02131336

PowerCapacityWatts : 1500

PowerSupplyType : AC

Redundancy : {@{@odata.id=/redfish/v1/Chassis/1/Power#/Redundancy/0}}

SerialNumber : 2102131336CSJ3001326

Status : @{State=Enabled; Health=OK}

ActiveStandby : Active

DeviceLocator : PS2

InputAmperage : 0

OutputAmperage : 0.234375

OutputVoltage : 0.046875

Position : chassis

PowerInputWatts : 204

PowerOutputWatts : 188

Protocol : PSU











RELATED LINKS

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



Get-iBMCPowerSuppliesHealth

Connect-iBMC

Disconnect-iBMC