HPE OneView
1822150 Members
4113 Online
109640 Solutions
New Discussion

Oneview reports

 
Chris_Coates
Advisor

Oneview reports

Hopefully I am just missing something. I am a fan of oneview except for the terrible reporting.

HPE just re-released a advisory about certian hard drives that can fail unless the firmware is up dated.

I cannot find any reports that will show the drive model (example EO000800JWDKQ) and firmware. I am not digging through each server individually. Does anyone know how to pull all the local drives up all together?  Reporting is my biggest disapointment in Oneview. I can get the info from amplifier pack, but since it is end of life I try not to use it as much, especially since my Gen11s arent in it. 

Thanks

3 REPLIES 3
MV3
HPE Pro

Re: Oneview reports

Hello,
 
You can use any REST API client, including PowerShell to get server objects.
 
Could you please help to check the Get-HPOVServer Cmdlet and check if that reports the HDD Model.
 
(Get-OVServer | ? generation -like 'Gen1*' ) | ForEach {
 
foreach ($disk in (Send-OVRequest -uri ($_.uri + '/localStorageV2' )).Data.PhysicalDrives)
{
$item = "" | select Name,Disk,Firmware,CapacityGB,Location,Health
$item.Name = $server.name
$item.Disk = $disk.model
$item.Firmware = $disk.firmwareversion.current.VersionString
$item.Location = $disk.location
$item.CapacityGB = $disk.CapacityGB
$item.Health = $disk.status.health
$item
}
 
}
 
 
Cheers...


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
support_s
System Recommended

Query: Oneview reports

Hello,

 

Let us know if you were able to resolve the issue.

 

If you have no further query, and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

MarioE
Trusted Contributor

Re: Oneview reports

Hello @MV3 

Thank you very much for your example, which helped me a lot.
This API only works for Gen10 servers with Smart Array Controller (SR). If I have a Gen11 server with a MegaRAID Controller (MR) I get no output.
Is there any possibility, except
GET /rest/server-hardware/{id}/localStorage
or
GET /rest/server-hardware/{id}/localStorageV2
to query the disk of an MR controller?