- Community Home
- >
- Software
- >
- HPE OneView
- >
- Find certain hardware in OneView server inventory
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
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
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
06-08-2023 06:09 PM - last edited on 06-15-2023 12:14 AM by support_s
06-08-2023 06:09 PM - last edited on 06-15-2023 12:14 AM by support_s
Find certain hardware in OneView server inventory
I am trying to find certain pieces in hardware, like for example systems with PCIe NVME cards. Anyone have an example how to this via PowerShell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 12:12 AM
06-15-2023 12:12 AM
Re: Find certain hardware in OneView server inventory
Hi,
Oneview categorizes the hardware based on the installed components. It groups similar hardware called Hardware type.
To get the hardare types from oneview using powershell, you can use Get-OVServerHardwareTypes command.
To filter out from the output of the hardware type use powershell filter option.
For example:
1. Made a connection to the OV from powershell.
Connect-OVMgmt -Hostname <OV IP Address> -UserName <OV UserName> -Password <OV Password>
Note: Make sure the OV cmdlets are installed.
2. List the hardware types
Get-OVServerHardwareTypes
Name Model Form Factor Adapters
---- ----- ----------- --------
BL460c Gen10 1 ProLiant BL460c Gen10 HalfHeight {Flb 1 - HP FlexFabric 20Gb 2-port 650FLB Adapter, Mezz 1 - HP FlexFabric 20Gb 2-port 650M Adapter}
BL460c Gen10 2 ProLiant BL460c Gen10 HalfHeight Flb 1 - HP FlexFabric 20Gb 2-port 630FLB Adapter
BL460c Gen9 1 ProLiant BL460c Gen9 HalfHeight Flb 1 - HP FlexFabric 20Gb 2-port 630FLB Adapter
BL460c Gen9 2 ProLiant BL460c Gen9 HalfHeight {Mezz 1 - HP Ethernet 1Gb 4-port 366M Adapter, Flb 1 - HP FlexFabric 10Gb 2-port 536FLB Adapter}
BL460c Gen9 3 ProLiant BL460c Gen9 HalfHeight Flb 1 - HP FlexFabric 20Gb 2-port 650FLB Adapter
DL360 Gen10 Plus 1 ProLiant DL360 Gen10 Plus 1U
3. Filter out the servers which has PCI adapter. (Example 650FLB).
Get-OVServerHardwareTypes | Where-Object Adapters -Match "650FLB"
Result:
Name Model Form Factor Adapters
---- ----- ----------- --------
BL460c Gen10 1 ProLiant BL460c Gen10 HalfHeight {Mezz 1 - HP FlexFabric 20Gb 2-port 650M Adapter, Flb 1 - HP FlexFabric 20Gb 2-port 650FLB Adapter}
BL460c Gen9 3 ProLiant BL460c Gen9 HalfHeight Flb 1 - HP FlexFabric 20Gb 2-port 650FLB Adapter
This lists only the servers which are having this specific adapter.
Hope this helps.
[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
06-19-2023 05:30 AM
06-19-2023 05:30 AM
Re: Find certain hardware in OneView server inventory
Make sure to replace "C:\Path\to\systemlist.txt" with the actual path to your system list file, which should contain a list of system names or IP addresses (one per line). Note that you'll need appropriate administrative privileges and proper network connectivity to run this script against remote systems. When you run the script, it will iterate through the list of systems, connect to each system using WMI, query for NVMe devices using the Win32_PnPEntity class, and display the names of the NVMe devices found on each system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 03:58 AM
06-21-2023 03:58 AM
Re: Find certain hardware in OneView server inventory
Hello @uzimmermann,
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.
Thanks,
Sunitha G
I'm an HPE employee.
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]
