< Back

Get-iBMCPowerInfo

Tue Jan 14, 2020 2:53 am

NAME Get-iBMCPowerInfo



SYNOPSIS

Get all iBMC Power Controls consumed infomation.





SYNTAX

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





DESCRIPTION

Get all iBMC Power Controls consumed infomation.

Including Id, Name, Consumed Watts, Min Consumed Watts, Max Consumed Watts, Avg Consumed Watts.





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 Array of PSObject indicates all iBMC Power Controls Reading infomation 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:\\> Get-iBMCPowerInfo -Session $session



Host : 10.1.1.2

Id : 0

Name : System Power Control 1

PowerConsumedWatts : 222 Watts

MaxConsumedWatts : 432 Watts

MinConsumedWatts : 18 Watts

AverageConsumedWatts : 183 Watts











RELATED LINKS

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



Connect-iBMC

Disconnect-iBMC