HPE OneView

Oneview Powershell to grab power readings from synergy modules

 
Synergize
Occasional Advisor

Oneview Powershell to grab power readings from synergy modules

Is there a way to grab power readings for each synergy module using the  powershell cmdlets?

2 REPLIES 2
AmRa
HPE Pro

Re: Oneview Powershell to grab power readings from synergy modules

If its reading synergy compute modules, you can use below command to grab power readings from synergy compute modules

$Server = Get-HPOVServer 'Enc1, Bay 1'
$ServerUtilization = Send-HPOVRequest ($Server.uri + '/utilization')

I am an HPE Employee

Accept or Kudo
ChrisLynch
HPE Pro

Re: Oneview Powershell to grab power readings from synergy modules

The use of the Get-HPOVServer Cmdlet is wrong, and it is not limited to HPE Synergy compute nodes.

# The following is supported with the HPE OneView 5.20 and older Cmdlets
$Server = Get-HPOVServer -Name "Encl1, bay 1"
$Utilization = Send-HPOVRequest -Uri ($Server.uri + "/utilization")

# The following is supported with the HPE OneView 5.30 and newer Cmdlets
$Server = Get-OVServer -Name "Encl1, bay 1"
$Utilization = Send-OVRequest -Uri ($Server.uri + "/utilization")

I am an HPE employee

Accept or Kudo