HPE OneView
1829857 Members
1997 Online
109993 Solutions
New Discussion

Re: 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?

3 REPLIES 3
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.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

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 work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
DurgaReddy
Senior Member

Re: Oneview Powershell to grab power readings from synergy modules

Where will be the output saved, if we run above script.

searching for that , it didnot save in the client location where i ran the command from.