HewlettPackard / POSH-HPEOneView

PowerShell language bindings library for HPE OneView.
http://hewlettpackard.github.io/POSH-HPEOneView/
125 stars 52 forks source link

Show-OVFirmwareReport function is not collect bundle version #659

Open armagansavas opened 11 months ago

armagansavas commented 11 months ago

When I run the command below, it appears as Unmanageable instead of the baseline version. I would like to see the version on the bundle instead.

Expected Behavior

$Baseline = Get-OVBaseline -File "Gen10spp-2023.iso"
get-ovserver -SerialNumber "serialnumber" | Show-OVFirmwareReport -Baseline $Baseline

Actual Behavior

Component                                                   ComponentType       Installed              BaselineVersion BaselineName
---------                                                   ------------- ---------                                   --------------- ------------
agentless management service                                Firmware      2.50.0.0                                        Unmanageable

Steps to reproduce

# 1. Capture verbose output using the Get-HPOVCommandTrace for HPOneView.310 or newer, or append the -Verbose switch to your Cmdlet call.
# 2. Put your code and/or captured output here.
# 3. Remove this comment block before submitting.

Version Information

HPE OneView PowerShell Library Version (Get-HPOVVersion or $PSLibraryVersion): HPE OneView Appliance Version (Get-HPOVVersion -ApplianceVer):
Output from $PSVersionTable on your Windows Host: ApplianceVersion: 6.60.05.482734.00 6.60.3530.1622 C:\program files\powershell\7\Modules\HPEOneView.660\6.60.3530.1622


# Output from $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.3.7
PSEdition                      Core
GitCommitId                    7.3.7
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
ChrisLynchHPE commented 11 months ago

The intention of this Cmdlet was to show firmware in a report form prior to enhancements we made within core OneView. This Cmdlet will need a re-write to handle the newer use cases supported by OneView.

This isn't a bug, rather an enhancement request.

ChrisLynchHPE commented 10 months ago

I have a solution here for this request. I'm trying to get caught up on the additional library releases needed. It will be in the 8.40 library first before I release an updated 8.30 library.

Here is an example:

[PS] C:\Users\clynch> Show-OVFirmwareReport -InputObject $server -Baseline $baseline -InstallationPolicy NotEqualToBaseline

    Server: linux

Component                                 ComponentType Installed                       BaselineVersion    BaselineName
---------                                 ------------- ---------                       ---------------    ------------
amsd                                      Software      1.4.0-3066.70.sles15            unknown            Unmanageable
b57nd60a.sys                              Software      15.6.1.3                        unknown            Unmanageable
BaseT I340-T4 OCP3                        Firmware      16.26.0112                      unknown            Unmanageable
BXVBDA.SYS                                Software      7.4.14.0                        unknown            Unmanageable
evbda.sys                                 Software      7.4.33.1                        unknown            Unmanageable
HPE SR308i-o Gen11                        Firmware      5.32                            5.61               Unmanageable
HPE SR932i-p Gen11                        Firmware      03.01.05.086                    03.01.17.056       Unmanageable
hponcfg                                   Software      5.4.0-0                         unknown            Unmanageable
iLO 6                                     Firmware      1.10 (02/18/2020)               1.51               Unmanageable
Innovation Engine (IE) Firmware           Firmware      0.1.0.13                        unknown            Unmanageable
Intelligent Platform Abstraction Data     Firmware      1.79.0                          unknown            Unmanageable
Intelligent Provisioning                  Firmware      3.00.227                        unknown            Unmanageable
iscsiuio                                  Software      2.11.5.13-3.sles15sp0           unknown            Unmanageable
iscsiuio_bl                               Software      2.11.5.13-3.sles15sp0           unknown            Unmanageable
lsi_sas2.sys                              Software      2.0.60.82                       unknown            Unmanageable
ME SPI Descriptor                         Firmware      1.1 0                           unknown            Unmanageable
mlx4_bus.sys                              Software      4.4.13905.0                     unknown            Unmanageable
netxtreme2_bl-kmp-default                 Software      7.14.70_k4.12.14_23-1.sles15sp0 unknown            Unmanageable
netxtreme2-kmp-default                    Software      7.14.60_k4.12.14_23-1.sles15sp0 unknown            Unmanageable
Power Management Controller Firmware      Firmware      1.0.2                           unknown            Unmanageable
Power Management Controller FW Bootloader Firmware      1.0                             unknown            Unmanageable
Power Supply Firmware                     Firmware      0.01                            unknown            Unmanageable
Redundant System BIOS - U63               Firmware      U63 v1.10 (11/04/2021)          unknown            Unmanageable
SAS Programmable Logic Device             Firmware      0x08 (bootleg 0x04)             unknown            Unmanageable
SFP+ QL41134HLCU                          Firmware      16.26.0112                      unknown            Unmanageable
smartpqi-kmp-default                      Software      1.2.4-065.sles15sp0             unknown            Unmanageable
SPS Platform Services (SPS) Firmware      Firmware      4.9.4.288                       unknown            Unmanageable
ssa                                       Software      3.40-3.0                        unknown            Unmanageable
ssacli                                    Software      3.40-3.0                        unknown            Unmanageable
ssaducli                                  Software      3.40-3.0                        unknown            Unmanageable
StorageDiskDrive                          Firmware      HPD8                            unknown            Unmanageable
sut                                       Software      2.4.5-14.linux                  unknown            Unmanageable
System BIOS - U63                         Firmware      U63 v1.10 (11/04/2021)          v1.44 (07/31/2023) Unmanageable
System Programmable Logic Device          Firmware      0x1E                            unknown            Unmanageable
armagansavas commented 10 months ago

Thanks for the quick response. My Apliance version is 6.50 with this version powershell. Can I use the 8.30 module? I installed the 8.30 ps module, then when I tried to connect, I got the error below.

VERBOSE: [SEND-OVREQUEST] Cleaning up HttpWebRequest VERBOSE: [CONNECT-OVMGMT] Exception caught when checking X-API version. **Connect-OVMgmt**: [Send-OVRequest]: The specified API version is not valid. Check the value of the X-API-Version header, then resend the request.