HPE OneView
1821643 Members
3137 Online
109633 Solutions
New Discussion

Find certain hardware in OneView server inventory

 
uzimmermann
Frequent Advisor

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?

 

3 REPLIES 3
Kashyap02
HPE Pro

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.

I am a HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo

Wngton
New Member

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.

Sunitha_Mod
Moderator

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]
Accept or Kudo