Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-HPEiLOServerSoftwareInventory does not return version and name and is wrongly used in InventoryInformation.ps1 #65

Closed
Anand1202 opened this issue Jun 2, 2021 · 4 comments

Comments

@Anand1202
Copy link

Anand1202 commented Jun 2, 2021

Get-HPEiLOServerSoftwareInventory does only return the description of the running HPE software, not the (proccess) name, nor the version.

Further then the sample script called InventoryInformation.ps1 has an error in line 195 where it reads "$output.Devices"
"Devices" is not an attribute returned by Get-HPEiLOServerSoftwareInventory. It looks like a copy and paste from line 223 where the code makes sense as it here returns data generated by Get-HPEiLODeviceInventory.

@Anand1202
Copy link
Author

Here an example of the missing data:

PS C:\temp> Enable-HPEiLOLog

LogFilePath
-----------
C:\Program Files (x86)\Hewlett Packard Enterprise\PowerShell\Modules\HPEiLOCmdlets\Logs\HPEiLOCmdlets_622021_145522146.log


PS C:\temp> $hpservers = 'myserver.mydomain.org'
PS C:\temp> $credential = Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\temp> $connection = $hpservers | Connect-HPEiLO -Credential $credential -DisableCertificateAuthentication
PS C:\temp> (Get-HPEiLOFirmwareInventory -Connection $connection).FirmwareInformation | Select-Object -Property FirmwareName,FirmwareVersion,Location | Format-Table

FirmwareName                               FirmwareVersion        Location
------------                               ---------------        --------
iLO 5                                      2.41 Mar 08 2021       System Board
System ROM                                 U32 v2.42 (01/23/2021) System Board
Intelligent Platform Abstraction Data      14.1.0 Build 18        System Board
System Programmable Logic Device           0x2E                   System Board
Power Management Controller Firmware       1.0.7                  System Board
Power Supply Firmware                      1.00                   Bay 1
Power Supply Firmware                      1.00                   Bay 2
Innovation Engine (IE) Firmware            0.2.2.0                System Board
Server Platform Services (SPS) Firmware    4.1.4.423              System Board
Server Platform Services (SPS) Descriptor  1.2 0                  System Board
Redundant System ROM                       U32 v2.36 (07/16/2020) System Board
Intelligent Provisioning                   3.52.37                System Board
Power Management Controller FW Bootloader  1.1                    System Board
HPE Smart Storage Energy Pack 1 Firmware   0.60                   Embedded Device
TPM Firmware                               73.20                  System Board
HPE Ethernet 1Gb 4-port 331i Adapter - NIC 20.18.31               Embedded LOM
HPE Smart Array P408i-a SR Gen10           3.21                   Embedded RAID
Embedded Video Controller                  2.5                    Embedded Device
Drive                                      HPD3                   Embedded controller Port 1I Box 1 Bay 1
Drive                                      HPD3                   Embedded controller Port 1I Box 1 Bay 2


PS C:\temp> (Get-HPEiLOServerSoftwareInventory -Connection $connection).ServerSoftwareInfo | Select-Object -Property Description,Name,Version | Format-Table

Description                                                 Name Version
-----------                                                 ---- -------
agentless management service
smart storage administrator
smart storage administrator command line interface
smart storage administrator
broadcom netxtreme gigabit ethernet ndis6.x unified driver.
Matrox G200eH Display Only Driver
hp lights-out online configuration utility
nvme drive eject nmi fix versioning dll
integrated smart update tools
ilo 5 channel interface driver
versioning dll for intel c620 based systems
smartraid, smarthba pqi storport driver
ilo 5 asr driver
hpe smart array sr event notification service


PS C:\temp> Disable-HPEiLOLog
Logging disabled for the current session!

And here the log data:

2021-06-02 14:56:45,422 INFO - [Connect-HPEiLO][myserver.mydomain.org][ProcessiLOXmlData]: XML Reply on: Reading iLO xml data
2021-06-02 14:56:45,444 INFO - [Connect-HPEiLO][myserver.mydomain.org][ProcessiLOXmlData]: iLO FirmwareVersion: iLO5 v2,41 
2021-06-02 14:56:45,449 INFO - [Connect-HPEiLO][myserver.mydomain.org][GetServerInfoFromProductName]: Product Name: ProLiant DL360 Gen10
2021-06-02 14:56:46,346 INFO - [Connect-HPEiLO][myserver.mydomain.org][CreateConnection]: Creating connection for connection type(s): Redfish
2021-06-02 14:56:46,351 INFO - [Connect-HPEiLO][myserver.mydomain.org][Redfish][CreateConnection]: Establishing connection.
2021-06-02 14:56:48,272 INFO - [Connect-HPEiLO][myserver.mydomain.org][Redfish][CreateUsernamePasswordConnection]: Received response for create connection request.
2021-06-02 14:56:48,615 INFO - [Connect-HPEiLO][myserver.mydomain.org][Redfish][CreateUsernamePasswordConnection]: Connection established.
2021-06-02 14:56:48,637 INFO - [Connect-HPEiLO][myserver.mydomain.org][CreateConnection]: Connection established for connection type(s): Redfish
2021-06-02 14:56:51,660 INFO - [Get-HPEiLOFirmwareInventory][Redfish][GetRedfishModel]: Begin
2021-06-02 14:56:51,762 INFO - [Get-HPEiLOFirmwareInventory][Redfish][GetCommunicationModel]: End
2021-06-02 14:56:51,767 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ValidateFeatureSupportability]: Begin
2021-06-02 14:56:51,772 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ValidateFeatureSupportability]: Begin
2021-06-02 14:56:51,777 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][CheckParameterValueForQuotes]: Begin
2021-06-02 14:56:51,781 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][CheckParameterValueForQuotes]: End
2021-06-02 14:56:51,787 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][BuildCommand]: Begin
2021-06-02 14:56:51,795 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: Begin
2021-06-02 14:56:51,799 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: Getting JSON url for ODataType UpdateService.
2021-06-02 14:56:51,805 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: Begin
2021-06-02 14:56:51,809 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: Getting OdataId for OdataType UpdateService.
2021-06-02 14:56:51,813 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: Traversal path for the given ODataType is ['FirmwareInventory'].['@odata.id'].
2021-06-02 14:56:51,818 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetODataIdFromResourceDirectory]: Begin
2021-06-02 14:56:51,822 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetODataIdFromResourceDirectory]: Getting url value from resource instance.
2021-06-02 14:56:52,229 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetODataIdFromResourceDirectory]: End
2021-06-02 14:56:52,234 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: End
2021-06-02 14:56:52,239 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: JSON url is /redfish/v1/UpdateService/FirmwareInventory/
2021-06-02 14:56:52,244 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: JSON URL with query is- /redfish/v1/UpdateService/FirmwareInventory/?$expand=.
2021-06-02 14:56:52,248 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: End
2021-06-02 14:56:52,253 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][BuildCommand]: End
2021-06-02 14:56:52,259 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][SendCommand]: Begin
2021-06-02 14:56:52,263 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][SendCommand]: Sending Redfish request.
2021-06-02 14:56:52,679 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][SendCommand]: End
2021-06-02 14:56:52,684 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessResponse]: Begin
2021-06-02 14:56:52,689 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessResponse]: Processing JSON response.
2021-06-02 14:56:52,700 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: Begin
2021-06-02 14:56:52,711 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetErrorObject]: Begin
2021-06-02 14:56:52,727 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][GetErrorObject]: End
2021-06-02 14:56:52,731 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: Response Type is HPE.iLO.Response.Redfish.FirmwareInfo
2021-06-02 14:56:52,736 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: Processing complex JSON response.
2021-06-02 14:56:52,740 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: End
2021-06-02 14:56:52,744 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessResponse]: End
2021-06-02 14:56:52,750 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessOutput]: Begin
2021-06-02 14:56:52,754 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessOutput]: Converting JSON response to its respective output object.
2021-06-02 14:56:52,798 INFO - [Get-HPEiLOFirmwareInventory][myserver.mydomain.org][Redfish][ProcessOutput]: End
2021-06-02 14:56:57,710 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][ValidateCmdletRecord]: Begin
2021-06-02 14:56:57,718 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][CheckAMSData]: Begin
2021-06-02 14:56:57,724 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][CheckAMSData]: Getting AMS setting.
2021-06-02 14:56:58,075 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][CheckAMSData]: Retrieved AMS setting.
2021-06-02 14:56:58,080 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][CheckAMSData]: End
2021-06-02 14:56:58,084 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][ValidateCmdletRecord]: End
2021-06-02 14:56:58,088 INFO - [Get-HPEiLOServerSoftwareInventory][Redfish][GetRedfishModel]: Begin
2021-06-02 14:56:58,094 INFO - [Get-HPEiLOServerSoftwareInventory][Redfish][GetCommunicationModel]: End
2021-06-02 14:56:58,098 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateFeatureSupportability]: Begin
2021-06-02 14:56:58,102 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateFeatureSupportability]: Validating Cmdlet supportability.
2021-06-02 14:56:58,109 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateCmdlet]: Begin
2021-06-02 14:56:58,113 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateCmdlet]: Checking for iLOGeneration, Model and Firmware for Cmdlet Supportability.
2021-06-02 14:56:58,119 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateCmdlet]: End
2021-06-02 14:56:58,123 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateFeatureSupportability]: Validating parameter supportability.
2021-06-02 14:56:58,128 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ValidateFeatureSupportability]: Begin
2021-06-02 14:56:58,132 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][CheckParameterValueForQuotes]: Begin
2021-06-02 14:56:58,137 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][CheckParameterValueForQuotes]: End
2021-06-02 14:56:58,141 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][BuildCommand]: Begin
2021-06-02 14:56:58,144 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: Begin
2021-06-02 14:56:58,148 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: Getting JSON url for ODataType UpdateService.
2021-06-02 14:56:58,152 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: Begin
2021-06-02 14:56:58,156 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: Getting OdataId for OdataType UpdateService.
2021-06-02 14:56:58,160 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: Traversal path for the given ODataType is ['SoftwareInventory'].['@odata.id'].
2021-06-02 14:56:58,163 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetODataIdFromResourceDirectory]: Begin
2021-06-02 14:56:58,167 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetODataIdFromResourceDirectory]: Getting url value from resource instance.
2021-06-02 14:56:58,409 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetODataIdFromResourceDirectory]: End
2021-06-02 14:56:58,414 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetJsonURL]: End
2021-06-02 14:56:58,418 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: JSON url is /redfish/v1/UpdateService/SoftwareInventory/
2021-06-02 14:56:58,422 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: JSON URL with query is- /redfish/v1/UpdateService/SoftwareInventory/?$expand=.
2021-06-02 14:56:58,426 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetRedfishConfigData]: End
2021-06-02 14:56:58,430 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][BuildCommand]: End
2021-06-02 14:56:58,434 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][SendCommand]: Begin
2021-06-02 14:56:58,439 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][SendCommand]: Sending Redfish request.
2021-06-02 14:56:58,691 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][SendCommand]: End
2021-06-02 14:56:58,695 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessResponse]: Begin
2021-06-02 14:56:58,699 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessResponse]: Processing JSON response.
2021-06-02 14:56:58,704 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: Begin
2021-06-02 14:56:58,708 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetErrorObject]: Begin
2021-06-02 14:56:58,713 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][GetErrorObject]: End
2021-06-02 14:56:58,718 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: Response Type is HPE.iLO.Response.Redfish.ServerSoftwareInventory
2021-06-02 14:56:58,723 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: Processing complex JSON response.
2021-06-02 14:56:58,728 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessRedfishResponse]: End
2021-06-02 14:56:58,732 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessResponse]: End
2021-06-02 14:56:58,739 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessOutput]: Begin
2021-06-02 14:56:58,743 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessOutput]: Converting JSON response to its respective output object.
2021-06-02 14:56:58,758 INFO - [Get-HPEiLOServerSoftwareInventory][myserver.mydomain.org][Redfish][ProcessOutput]: End

@Anand1202
Copy link
Author

I am by the way using version 3.1.0.1 of Scripting Tools for Windows PowerShell: iLO cmdlets released on 01 Jun 2021.

@hp-powershell
Copy link
Contributor

Hi

Kindly check with our new released version of the product HPEiLOCmdlets 3.3

Thanks & Regards,
Powershell Team

@hp-powershell
Copy link
Contributor

Hi ,

Kindly check with the HPEiLOCmdlets 4.0 , Issue is not seen there .

Thanks & Regards,
Powershell Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants