< Back

Get-HPESysInfoPowerSupply

Tue Jan 14, 2020 2:28 am

NAME Get-HPESysInfoPowerSupply



SYNOPSIS

Get information about power supply.





SYNTAX

Get-HPESysInfoPowerSupply [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]



Get-HPESysInfoPowerSupply [-Credential <PSCredential>] [<CommonParameters>]





DESCRIPTION

Get information about power supply including the firmware version, model, and PowerCapacityWatts.





PARAMETERS

-Username [<String>]

Username to log onto the target iLO. Username needs to be provided as an input along with Password. This

parameter is required when the iLO security is enabled.



ParameterSetName: UsernamePasswordSet



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Password [<String>]

Password to log onto the target iLO. Password needs to be provided along with Username. This parameter is

required when the iLO security is enabled.



ParameterSetName: UsernamePasswordSet



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Credential [<PSCredential>]

Holds the target iLO Credential in a secure manner. This parameter is required when the iLO security is

enabled.



ParameterSetName: CredentialSet



Required? false

Position? named

Default value None

Accept pipeline input? True (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

None







OUTPUTS

System.Object







NOTES

Status



The value returned in the "Status" property reflects the data retrieval operation of a cmdlet. It does not

reflect the component status. When a cmdlet returns ???????Status: Error??????? or ???????Status: Warning???????, it indicates that

the operation to retrieve the data was not successful. The ???????StatusInfo??????? message specifies the reason for the

data retrieval operation failure. If the data retrieval operation is successful, "Status: OK" is returned for

the cmdlet, and the component status is displayed in the Health property and/or other properties of the PS

object.



EXAMPLE 1



Get an object of Get-HPESysInfoPowerSupply and get the overall information about power supply.PS C:\\> $pwsp =

Get-HPESysInfoPowerSupply -Username username -Password password

PS C:\\> $pwsp | fl





PowerSupply : {@{FirmwareVersion=1.01; LastPowerOutputWatts=116; LineInputVoltage=215;

LineInputVoltageType=ACHighLine; Model=865408-B21; Name=HpeServerPowerSupply;

Oem=System.Collections.Generic.List`1[System.Object]; PowerCapacityWatts=500; PowerSupplyType=AC;

SerialNumber=5WBXKV1LL36092; SparePartNumber=866729-001;

Status=System.Collections.Generic.List`1[System.Object]},

@{Oem=System.Collections.Generic.List`1[System.Object];

Status=System.Collections.Generic.List`1[System.Object]}}

Status : OK





EXAMPLE 2



Get an object of Get-HPESysInfoPowerSupply and get the firmware version of the power supplies.PS C:\\> $pwsp =

Get-HPESysInfoPowerSupply -Credential $credential

PS C:\\> $pwsp.PowerSupply.FirmwareVersion

1.01





EXAMPLE 3



Get an object of Get-HPESysInfoPowerSupply and get the model name of the power supplies.PS C:\\> $pwsp =

Get-HPESysInfoPowerSupply

PS C:\\> $pwsp.PowerSupply.Model

865408-B21







RELATED LINKS

http://www.hpe.com/servers/powershell