- Community Home
- >
- Software
- >
- HPE OneView
- >
- Drive Report - Custom Report
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2019 01:54 AM
05-16-2019 01:54 AM
Drive Report - Custom Report
Hi,
I have found the inbuilt reports on OneView and the Global Dashboard to be sufficient enough so far, however, due to orders beyond my control, it's become necessary to create a report of what models of drives we have in all of our servers. Now obviously I don't want to click on each server in OneView and go to the hardware view, or even worse, go to every single iLO.
Is it possible to create a custom report with the drive model/part number information?
If so, how?
Any specific powershell modules to install?
Any help would be greatly appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2019 03:51 AM
05-16-2019 03:51 AM
Re: Drive Report - Custom Report
@ChrisLynch Sorry to tag you directly, any thoughts on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2019 08:41 AM - last edited on 07-15-2024 11:14 PM by Sunitha_Mod
05-16-2019 08:41 AM - last edited on 07-15-2024 11:14 PM by Sunitha_Mod
Re: Drive Report - Custom Report
There are two requirements:
- You need to have HPE OneView 4.20 installed.
- Only Gen10 servers can report their drive inventory today.
- You can use any REST API client, including PowerShell to get server objects.
The Get-HPOVServer Cmdlet will return the server objects. However, the returned object will not contain the local storage details. So, if you have Gen10's, you can do something like:
(Get-HPOVServer | ? model -match 'Gen10' | select -fir 1 | % { sr -uri ($_.uri + '/localStorage' ) }).Data
Which then returns something similar to:
AdapterType : SmartArray BackupPowerSourceStatus : Present CacheMemorySizeMiB : 1024 CurrentOperatingMode : Mixed EncryptionCryptoOfficerPasswordSet : False EncryptionCspTestPassed : False EncryptionEnabled : False EncryptionFwLocked : False EncryptionHasLockedVolumesMissingBootPassword : False EncryptionMixedVolumesEnabled : False EncryptionSelfTestPassed : False EncryptionStandaloneModeEnabled : False ExternalPortCount : 0 FirmwareVersion : @{Current=} InternalPortCount : 2 Location : Slot 0 LocationFormat : PCISlot Model : EMBEDDED CONTROLLER Name : HpSmartStorageArrayController PhysicalDrives : {@{BlockSizeBytes=512; CapacityLogicalBlocks=286677120; CapacityMiB=139264; EncryptedDrive=False; FirmwareVersion=; Location=1I:1:1; Model=EH0146FCBVL; SerialNumber=SGH101X2RN; Status=}, @{BlockSizeBytes=512; CapacityLogicalBlocks=286677120; CapacityMiB=139264; EncryptedDrive=False; FirmwareVersion=; Location=1I:1:2; Model=EH0146FCBVL; SerialNumber=confidential info erased; Status=}} SerialNumber : 0PR0X0E9T0 Status : @{Health=Warning; State=Enabled}
The PhysicalDrives property will contain the drives for that server. The inventory view is only as current as the last time the server was powered on.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2019 01:53 PM
05-16-2019 01:53 PM
Re: Drive Report - Custom Report
I cannot talk about product futures, but you might keep a lookout for features in Global Dashboard in the very near future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2019 07:44 AM
05-17-2019 07:44 AM
Re: Drive Report - Custom Report
Hi Chris! Thanks for the reply! We do have a few G10's knocking around so this is helpful!
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2019 07:44 AM
05-17-2019 07:44 AM
Re: Drive Report - Custom Report
Sounds intriguing Bruce! Will do. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2020 02:06 AM
02-01-2020 02:06 AM
Re: Drive Report - Custom Report
These Powershell scripts produce a useful CSV of HDD/SSD s/n's from OV or just through ILO connectivity for Gen 10's.
https://github.com/HewlettPackard/oneview-powershell-samples/tree/master/OneView-Inventory-SAS-SSD
Am hoping this fuctionality will be added into OV reporting at some point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 08:37 AM
01-12-2024 08:37 AM
Re: Drive Report - Custom Report
For anyone out there looking for a way to acheive this using PowerShell
$servers = (Get-OVServer | ? generation -like 'Gen1*' )
$list = foreach($server in $servers)
{
Get-RSOVServerDiskInfo -Server $server
}
function Get-RSOVServerDiskInfo
{
Param( $Server)
foreach($disk in (Send-OVRequest -uri ($server.uri + '/localStorage' )).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
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 11:52 AM
07-10-2024 11:52 AM
Re: Drive Report - Custom Report
Is there an updated version of this script that supports the Gen11 model? The "Data" property for localstorage at that URI is blank for all Gen11 servers that I tested. The Gen10 servers, it works great...but Ge11 I get nada. All our Gen11 servers have SSD drives, whereas the Gen10 servers are all old-school mechanical drives - does that matter?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 03:31 PM - edited 07-10-2024 03:32 PM
07-10-2024 03:31 PM - edited 07-10-2024 03:32 PM
Re: Drive Report - Custom Report
The data is likely within localStorageV2 endpoint. The different controllers across Gen10 and Gen11 provide different Redfish endpoints, which in turn is just pass-through data from the iLO. The following modified script should provide what you are looking for:
(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
}
}
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 06:59 AM
07-11-2024 06:59 AM
Re: Drive Report - Custom Report
Excellent - I will try it out. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 07:20 AM
07-11-2024 07:20 AM
Re: Drive Report - Custom Report
FYI...looks like it is "data.drives" now and not "data.physicaldrives" for the gen11 at the "/localStorageV2" uri. But, does appears to be working.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 07:47 AM - last edited on 07-15-2024 11:15 PM by Sunitha_Mod
07-11-2024 07:47 AM - last edited on 07-15-2024 11:15 PM by Sunitha_Mod
Re: Drive Report - Custom Report
@ChrisLynch One more question...looks like firmware is not available for the Gen11 version of the data, but I do see something called "Revision". Would "Revision" represent the same thing as "Firmware"?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2024 02:40 PM
07-16-2024 02:40 PM
Re: Drive Report - Custom Report
Can you provide a sample output from what you get? I don't have a Gen11 server at the moment to verify. Keep in mind that the data here is passed-through from the iLO in its native Redfish format. So any changes to the format and data is controlled by the iLO.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 10:07 AM
10-29-2024 10:07 AM
Re: Drive Report - Custom Report
I have a quick script to pull from OneView. It's a bit rough but works.
You'll need to have a connection open first to OV, then run it.