From 69a186634e7f3d692879696ca153fa40ea72f67d Mon Sep 17 00:00:00 2001 From: Chris Lynch Date: Thu, 3 Oct 2024 11:39:50 -0700 Subject: [PATCH] - [#676] Fixed -Detailed parameter output with Get-OVServerProfile. - [#667] Fixed mishandling of baseline resource object class type. - Fixed Show-OVFirmwareReport mishandling Synergy compute module resources when calculating compliance. - Fixed Show-OVFirmwareReport mishandling Synergy management appliance module resources when calculating compliance. Signed-off-by: Chris Lynch --- HPEOneView.900.psd1 | 10 +- HPEOneView.900.psm1 | 209 +++++++++++++----- ...6-37bd-4c1a-bbe9-596baa795520_HelpInfo.xml | 2 +- ...37bd-4c1a-bbe9-596baa795520_ModuleInfo.xml | 2 +- README.md | 20 +- Server.format.ps1xml | 118 +++++++++- en-US/HPEOneView.900.psm1-help.xml | 2 +- en-US/about_HPEOneView.900.help.txt | 9 + lib/HPEOneView_Classes.dll | Bin 284160 -> 284160 bytes 9 files changed, 298 insertions(+), 74 deletions(-) diff --git a/HPEOneView.900.psd1 b/HPEOneView.900.psd1 index 1630bc8..be72c0b 100644 --- a/HPEOneView.900.psd1 +++ b/HPEOneView.900.psd1 @@ -12,7 +12,7 @@ RootModule = 'HPEOneView.900.psm1' # Version number of this module. -ModuleVersion = '9.0.4012.2103' +ModuleVersion = '9.0.4020.1622' # Supported PSEditions # CompatiblePSEditions = @() @@ -156,10 +156,12 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = 'Release 9.00.4012.2103 + ReleaseNotes = 'Release 9.00.4020.1622 -- Added Compliance Preview back to Update-OVServerFirmware with -PreviewOnly switch parameter. -- Fixed incorrect handling of server profile resource (assigned and unassigned) with Update-OVServerFirmware.' +- [#676] Fixed -Detailed parameter output with Get-OVServerProfile. +- [#667] Fixed mishandling of baseline resource object class type. +- Fixed Show-OVFirmwareReport mishandling Synergy compute module resources when calculating compliance. +- Fixed Show-OVFirmwareReport mishandling Synergy management appliance module resources when calculating compliance.' # Prerelease string of this module # Prerelease = '' diff --git a/HPEOneView.900.psm1 b/HPEOneView.900.psm1 index 00b8737..6062dbe 100644 --- a/HPEOneView.900.psm1 +++ b/HPEOneView.900.psm1 @@ -27,7 +27,7 @@ THE SOFTWARE. #> # Set HPEOneView POSH Library Version -[Version]$ModuleVersion = '9.00.4012.2103' +[Version]$ModuleVersion = '9.00.4020.1622' New-Variable -Name PSLibraryVersion -Scope Global -Value ([HPEOneView.Library.Version]::new($ModuleVersion)) -Option Constant -ErrorAction SilentlyContinue $Global:CallStack = Get-PSCallStack $script:ModuleVerbose = [Bool]($Global:CallStack | Where-Object { $_.Command -eq "" }).position.text -match "-verbose" @@ -391,8 +391,9 @@ $ResourceCategoryEnum = @{ [PSCustomObject]$MpModelTable = @{ ilo2 = "RI7"; ilo3 = "RI9"; - ilo4 = "RI10" - iLO5 = "RI11" + ilo4 = "RI10"; + iLO5 = "RI11"; + iLO6 = "RI12" } [HashTable]$Script:ServerPowerControlEnum = @{ @@ -34025,6 +34026,7 @@ function Get-OVBaseline # .ExternalHelp HPEOneView.900.psm1-help.xml [CmdletBinding (DefaultParameterSetName = "ISOFileName" )] + [OutputType([HPEOneView.Appliance.Baseline])] Param ( @@ -34265,25 +34267,50 @@ function Get-OVBaseline "ISOFileName" { - if ($File) + if ($PSBoundParameters['File']) { - if ($File.EndsWith('.exe') -or $File.EndsWith('.scexe') -or $File.EndsWith('.rpm') -or $File.EndsWith('.zip') -or $File.EndsWith('.fwpkg')) + $_FileToProcess = $null + + Switch ($File.GetType().Fullname) + { + + 'System.IO.FileInfo' + { + + $_FileToProcess = $File.Name + + } + + 'System.String' + { + + $_FileToProcess = $File + + } + + } + + if ($_FileToProcess.EndsWith('.exe') -or + $_FileToProcess.EndsWith('.scexe') -or + $_FileToProcess.EndsWith('.rpm') -or + $_FileToProcess.EndsWith('.zip') -or + $_FileToProcess.EndsWith('.fwpkg')) { "[{0}] Looking for hotfix file" -f $MyInvocation.InvocationName.ToString().ToUpper() | Write-Verbose - if ($File.Contains('*')) + if ($_FileToProcess.Contains('*')) { - [Void]$_Query.Add(("fwbaseline_fileName%3A{0}" -f $File.Replace("*", "%2A"))) + [Void]$_Query.Add(("fwbaseline_fileName%3A{0}" -f $_FileToProcess.Replace("*", "%2A"))) } else { - [Void]$_Query.Add(("fwbaseline_fileName:'{0}'" -f $File)) + [Void]$_Query.Add(("fwbaseline_fileName:'{0}'" -f $_FileToProcess)) } @@ -34294,15 +34321,15 @@ function Get-OVBaseline "[{0}] Looking for Baseline ISO file" -f $MyInvocation.InvocationName.ToString().ToUpper() | Write-Verbose - if (-not $File.EndsWith('iso')) + if (-not $_FileToProcess.EndsWith('iso')) { - $File += '.iso' + $_FileToProcess += '.iso' } # Replace any preceeding period with an underscore. - $_File = [RegEx]::Replace($File, '\.(?!iso|exe|scexe|rpm|zip)', '_') + $_File = [RegEx]::Replace($_FileToProcess, '\.(?!iso|exe|scexe|rpm|zip)', '_') if ($_File.Contains('*')) { @@ -49767,8 +49794,6 @@ function Restart-OVServer } - - } } @@ -63678,7 +63703,7 @@ function Get-EnclosureFirmware } - elseif (($Baseline) -and ($Baseline -is [PsCustomObject]) -and ($Baseline.category -eq $ResourceCategoryEnum.Baseline)) + elseif (($Baseline) -and ($Baseline -is [PsCustomObject] -or $Baseline -is [HPEOneView.Appliance.Baseline]) -and ($Baseline.category -eq $ResourceCategoryEnum.Baseline)) { "[{0}] Baseline resource passed." -f $MyInvocation.InvocationName.ToString().ToUpper() | Write-Verbose @@ -63690,7 +63715,7 @@ function Get-EnclosureFirmware } # Check to see if the wrong Object has been passed - elseif (($Baseline) -and ($Baseline -is [PsCustomObject]) -and ($Baseline.category -ne "firmware-drivers")) + elseif (($Baseline) -and ($Baseline -is [PsCustomObject] -or $Baseline -is [HPEOneView.Appliance.Baseline]) -and ($Baseline.category -ne "firmware-drivers")) { "[{0}] Invalid Baseline resource passed. Generating error." -f $MyInvocation.InvocationName.ToString().ToUpper() | Write-Verbose @@ -64290,6 +64315,13 @@ function Get-ServerFirmware Process { + if (-not $PSBoundParameters['InstallationPolicy']) + { + + $InstallationPolicy = 'LowerThanBaseline' + + } + $_NoBaselinePolicy = [PsCustomObject]@{ name = "NoPolicySet"; @@ -64451,7 +64483,7 @@ function Get-ServerFirmware } - elseif ($Baseline -is [PSCustomObject]) + elseif ($Baseline -is [PSCustomObject] -or $Baseline -is [HPEOneView.Appliance.Baseline]) { if ($Baseline.baselineShortName -eq 'NoPolicySet') @@ -65129,7 +65161,7 @@ function Get-InterconnectFirmware } - elseif ($Baseline -is [PSCustomObject]) + elseif ($Baseline -is [PSCustomObject] -or $Baseline -is [HPEOneView.Appliance.Baseline]) { if ($Baseline.baselineShortName -eq 'NoPolicySet') @@ -74040,8 +74072,8 @@ function New-OVStorageVolume $_AllowedNimbleParams = "PerformancePolicy", "LockPerformancePolicy", "EnableEncryption", "CachePinning", "VolumeSet", "EnableIOPSLimit", "IOPSLimit", "EnableDataTransferLimit", "DataTransferLimit", "Folder" $_AllowedSSParams = "EnableCompression", "EnableDeduplication", "SnapshotStoragePool" # $_AllowedSVParams = "DataProtectionLevel", "EnableAdaptiveOptimization" - $_NotAllowedNimbleParams = $_AllowedSSParams #+ $_AllowedSVParams - $_NotAllowedSSParams = $_AllowedNimbleParams #+ $_AllowedSVParams + $_NotAllowedNimbleParams = $_AllowedSSParams + $_NotAllowedSSParams = $_AllowedNimbleParams $_NotAllowedVSParams = $_AllowedSSParams + $_AllowedNimbleParams $_SafeParams = "Name", "Description", "StoragePool", "StorageSystem", "VolumeTemplate", "Capacity", "ProvisioningType", "Full", "Shared", "Scope", "Async", "ApplianceConnection" @@ -109016,7 +109048,26 @@ function Get-OVServerProfile @{Expression={$_.state};Label="State"}, @{Expression={$_.status};Label="Status"} - $a2 = @{Expression={$_.bios.manageBios};Label="Manage BIOS";align="Left"}, + $a2 = @{Expression={$_.name};Label="Name"}, + @{Expression={$profileCache[$serverHardwareTypeUri].name};Label="Server Hardware Type"}, + @{Expression={ 'N/A' };Label="Enclosure Group"}, + @{Expression={ if ($_.serverHardwareUri){ (Send-OVRequest -Uri $_.serverHardwareUri ).name } + else { "Unassigned" } + };Label="Assigned"}, + @{Expression={ + + switch ($_.affinity) { + + "Bay" { "Device bay" } + "BayAndServer" { "Device bay + Server Hardware" } + + } + + };Label="Server Affinity"}, + @{Expression={$_.state};Label="State"}, + @{Expression={$_.status};Label="Status"} + + $a3 = @{Expression={$_.bios.manageBios};Label="Manage BIOS";align="Left"}, @{Expression={$_.boot.manageBoot};Label="Manage Boot Order";align="Left"}, @{Expression={$_.firmware.manageFirmware};Label="Manage Firmware";align="Left"}, @{Expression={if ($_.serialNumberType -eq "Virtual") { $_.serialNumber + " (v)" } else { $_.serialNumber + " (p)" }};Label="Serial Number"}, @@ -109057,7 +109108,7 @@ function Get-OVServerProfile $addressCol };Label="Address";width=32}, - @{Expression={$profileCache[$_.networkUri]};Label="Network"}, + @{Expression={$profileCache[$_.networkUri].name};Label="Network"}, @{Expression={$_.portId};Label="Port Id";width=10}, @{Expression={[String]$_.requestedMbps};Label="Requested BW";width=12}, @{Expression={[String]$_.maximumMbps};Label="Maximum BW";width=10}, @@ -109088,25 +109139,39 @@ function Get-OVServerProfile @{Expression={$_.settingName};Label="Setting Name"}, @{Expression={$_.valueName};Label="Configured Value"} - $ls = @{Expression={$_.manageLocalStorage};Label="Manage Local Storage";align="Left"}, - @{Expression={$_.initialize};Label="Initialize Disk";align="Left"}, - @{Expression={ + $cont = @{Label = "Slot"; Expression = { $_.deviceSlot }}, + @{Label = "Family"; Expression = { $_.family }}, + @{Label = "Mode"; Expression = { $_.mode }}, + @{Label = "Initialize"; Expression = { $_.initialize }}, + @{Label = "ImportConfiguration"; Expression = { $_.importConfiguration }}, + @{Label = "WriteCache"; Expression = { $_.driveWriteCache }} - $logicalDriveCol = @() - $d=0 - while ($d -lt $sp.logicalDrives.count) - { + $ld = @{Label = "Name"; Expression = { $_.name} }, + @{Label = "RAIDLevel"; Expression = { $_.raidLevel }}, + @{Label = "Bootable"; Expression = { $_.bootable }}, + @{Label = "NumberOfDrives"; Expression = { $_.numPhysicalDrives }}, + @{Label = "DriveTechnology"; Expression = { $_.driveTechnology }}, + @{Label = "SpareDrives"; Expression = { $_.spareDrives }} + # $ld = @{Expression={$_.manageLocalStorage};Label="Manage Local Storage";align="Left"}, + # @{Expression={$_.initialize};Label="Initialize Disk";align="Left"}, + # @{Expression={ - if ($_.logicalDrives[$d].bootable) { $logicalDriveCol += "Drive {$d} $($sp.logicalDrives[$d].raidLevel) (Bootable)" } - else { $logicalDriveCol += "Drive {$d} $($sp.logicalDrives[$d].raidLevel)" } - $d++ - } + # $logicalDriveCol = @() + # $d=0 - $logicalDriveString = $logicalDriveCol | Out-String | ForEach-Object { $_ -replace '^\s+|\s+$' } - $logicalDriveString + # while ($d -lt $sp.logicalDrives.count) + # { - };Label="Logical Disk"} + # if ($_.logicalDrives[$d].bootable) { $logicalDriveCol += "Drive {$d} $($sp.logicalDrives[$d].raidLevel) (Bootable)" } + # else { $logicalDriveCol += "Drive {$d} $($sp.logicalDrives[$d].raidLevel)" } + # $d++ + # } + + # $logicalDriveString = $logicalDriveCol | Out-String | ForEach-Object { $_ -replace '^\s+|\s+$' } + # $logicalDriveString + + # };Label="Logical Disk"} $ss = @{Expression={$_.manageSanStorage};Label="Manage SAN Storage";align="Left"}, @{Expression={$_.hostOSType};Label="Host OS Type";align="Left"} @@ -109145,35 +109210,40 @@ function Get-OVServerProfile } - $profileCache.Add($serverHardwareTypeUri, $_Sht.name) + $profileCache.Add($serverHardwareTypeUri, $_Sht) } - if (-not ($profileCache[$enclosureGroupUri]) -and $profile.enclosureGroupUri) + if ($profile.enclosureGroupUri) { - Try + if (-not ($profileCache[$enclosureGroupUri])) { - $_EG = Send-OVRequest -Uri $enclosureGroupUri -appliance $profile.ApplianceConnection.name + Try + { - } + $_EG = Send-OVRequest -Uri $enclosureGroupUri -appliance $profile.ApplianceConnection.name - Catch - { + } - $PSCmdlet.ThrowTerminatingError($_) + Catch + { - } + $PSCmdlet.ThrowTerminatingError($_) + + } + + $profileCache.Add($enclosureGroupUri, $_EG.name) - $profileCache.Add($enclosureGroupUri, $_EG.name) + } } foreach ($connection in $profile.connectionSettings.connections) { - $connection | ForEach-Object { $_.psobject.typenames.Insert(0,"HPEOneView.Profile.Connection") } + $connection | ForEach-Object { $_.psobject.typenames.Insert(0,"HPEOneView.ServerProfile.Connection") } if (-not ($profileCache[$connection.networkUri])) { @@ -109192,7 +109262,7 @@ function Get-OVServerProfile } - $profileCache.Add($connection.networkUri, $_Net.name) + $profileCache.Add($connection.networkUri, $_Net) } @@ -109202,7 +109272,7 @@ function Get-OVServerProfile { # Insert HPEOneView.Profile.SanVolume TypeName - $volume | ForEach-Object { $_.psobject.typenames.Insert(0,"HPEOneView.Profile.SanVolume") } + $volume | ForEach-Object { $_.psobject.typenames.Insert(0,"HPEOneView.ServerProfile.SanVolume") } # Cache Storage System, Storage Pool and Storage Volume Resources if (-not ($profileCache[$volume.volumeStorageSystemUri])) { $profileCache.Add($volume.volumeStorageSystemUri,(Send-OVRequest $volume.volumeStorageSystemUri $profile.ApplianceConnection.name)) } @@ -109214,8 +109284,21 @@ function Get-OVServerProfile #$profileCache # Initial Server Profile information - $profile | format-table $a1 -AutoSize -wrap - $profile | format-table $a2 -AutoSize -wrap + if (-not [String]::IsNullOrEmpty($profile.enclosureGroupUri)) + { + + $profile | format-table $a1 -AutoSize -wrap + + } + + else + { + + $profile | format-table $a2 -AutoSize -wrap + + } + + $profile | format-table $a3 -AutoSize -wrap # Firmware Baseline $profile.firmware | format-table $f @@ -109224,7 +109307,23 @@ function Get-OVServerProfile $profile.connectionSettings.connections | format-table -wrap # Local Storage - $profile.localStorage | format-table $ls -wrap -auto + ForEach ($controller in $profile.localStorage.controllers) + { + + $controller.PSObject.TypeNames.Insert(0, "HPEOneView.ServerProfile.LocalStorage.Controller") + + $controller | format-table $cont -wrap -auto + + ForEach ($logicalDrive in $controller.logicalDrives) + { + + $logicalDrive.PSObject.TypeNames.Insert(0, "HPEOneView.ServerProfile.LocalStorage.LogicalDrive") + + $logicalDrive | format-table $ld -wrap -auto + + } + + } # SAN Storage $profile.sanStorage | Format-Table $ss -auto @@ -120524,9 +120623,9 @@ function New-OVServerProfileAttachVolume $_AllowedNimbleParams = "PerformancePolicy", "LockPerformancePolicy", "EnableEncryption", "CachePinning", "VolumeSet", "EnableIOPSLimit", "IOPSLimit", "EnableDataTransferLimit", "DataTransferLimit", "Folder" $_AllowedSSParams = "EnableCompression", "EnableDeduplication", "SnapshotStoragePool" # $_AllowedSVParams = "DataProtectionLevel", "EnableAdaptiveOptimization" - $_NotAllowedNimbleParams = $_AllowedSSParams #+ $_AllowedSVParams - $_NotAllowedSSParams = $_AllowedNimbleParams #+ $_AllowedSVParams - $_NotAllowedVSParams = $_AllowedSSParams #+ $_AllowedNimbleParams + $_NotAllowedNimbleParams = $_AllowedSSParams + $_NotAllowedSSParams = $_AllowedNimbleParams + $_NotAllowedVSParams = $_AllowedSSParams $_SafeParams = "Name", "Description", "StoragePool", "StorageSystem", "VolumeTemplate", "Capacity", "ProvisioningType", "Full", "Shared", "Scope", "Async", "ApplianceConnection" if ($PSBoundParameters['ServerProfile']) @@ -129186,7 +129285,7 @@ function ParseForJson "Found embedded JSON within string." | Write-Debug $ConvertedEmbeddedJson = $Matches.Value | ConvertFrom-Json - $StringToAdd = '{0}' -f $ConvertedEmbeddedJson.name + $StringToAdd = '"{0}"' -f $ConvertedEmbeddedJson.name return [regex]::Replace($string, $regexpattern, $StringToAdd) } diff --git a/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_HelpInfo.xml b/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_HelpInfo.xml index 30c4cf1..36c0610 100644 --- a/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_HelpInfo.xml +++ b/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_HelpInfo.xml @@ -4,7 +4,7 @@ en-US - 9.0.4012.2104 + 9.0.4020.1623 \ No newline at end of file diff --git a/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_ModuleInfo.xml b/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_ModuleInfo.xml index af94e54..73e0181 100644 --- a/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_ModuleInfo.xml +++ b/HPEOneView.900_93487b26-37bd-4c1a-bbe9-596baa795520_ModuleInfo.xml @@ -1,5 +1,5 @@  http://hewlettpackard.github.io/POSH-HPEOneView/UpdateHelp - 9.0.4012.2103 + 9.0.4020.1622 \ No newline at end of file diff --git a/README.md b/README.md index d19f1c6..0ed1667 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ The major changes are: ## Build status -AppVeyor 9.10 Branch | AppVeyor 8.60 Branch | AppVeyor 8.40 Branch | AppVeyor 6.60 Branch +AppVeyor 9.10 Branch | AppVeyor 9.00 Branch | AppVeyor 8.60 Branch | AppVeyor 6.60 Branch -------------------- | -------------------- | -------------------- | -------------------- [![Build status][ov-master-build-status-badge]][ov-master-build-link] [![PS Gallery][ov-master-psgallery-badge]][ov-master-psgallery-link] | [![Build status][ov-minus1-build-status-badge]][ov-minus1-build-link] [![PS Gallery][ov-minus1-psgallery-badge]][ov-minus1-psgallery-link] | [![Build status][ov-minus2-build-status-badge]][ov-minus2-build-link] [![PS Gallery][ov-minus2-psgallery-badge]][ov-minus2-psgallery-link] | [![Build status][ov-minus3-build-status-badge]][ov-minus3-build-link] [![PS Gallery][ov-minus3-psgallery-badge]][ov-minus3-psgallery-link] @@ -76,17 +76,17 @@ Still available, but not actively maintained Gitter.im chat room: [![Join the ch [ov-master-psgallery-badge]: https://img.shields.io/powershellgallery/dt/HPEOneView.910.svg?label=PSGallery [ov-master-psgallery-link]: https://www.powershellgallery.com/packages/HPEOneView.910 - -[ov-minus1-build-status-badge]: https://ci.appveyor.com/api/projects/status/qi55u9r618ostv3i?svg=true -[ov-minus1-build-link]: https://ci.appveyor.com/project/ChrisLynchHPE/posh-hpeoneview-4roxn -[ov-minus1-psgallery-badge]: https://img.shields.io/powershellgallery/dt/HPEOneView.860.svg?label=PSGallery -[ov-minus1-psgallery-link]: https://www.powershellgallery.com/packages/HPEOneView.860 + +[ov-minus1-build-status-badge]: https://ci.appveyor.com/api/projects/status/6eyc2p6xjdjqblq0?svg=true +[ov-minus1-build-link]: https://ci.appveyor.com/project/ChrisLynchHPE/posh-hpeoneview-de9o0 +[ov-minus1-psgallery-badge]: https://img.shields.io/powershellgallery/dt/HPEOneView.900.svg?label=PSGallery +[ov-minus1-psgallery-link]: https://www.powershellgallery.com/packages/HPEOneView.900 -[ov-minus2-build-status-badge]: https://ci.appveyor.com/api/projects/status/v0fr443ttv7d162q?svg=true -[ov-minus2-build-link]: https://ci.appveyor.com/project/ChrisLynchHPE/posh-hpeoneview-kr9vk -[ov-minus2-psgallery-badge]: https://img.shields.io/powershellgallery/dt/HPEOneView.840.svg?label=PSGallery -[ov-minus2-psgallery-link]: https://www.powershellgallery.com/packages/HPEOneView.840 +[ov-minus2-build-status-badge]: https://ci.appveyor.com/api/projects/status/qi55u9r618ostv3i?svg=true +[ov-minus2-build-link]: https://ci.appveyor.com/project/ChrisLynchHPE/posh-hpeoneview-4roxn +[ov-minus2-psgallery-badge]: https://img.shields.io/powershellgallery/dt/HPEOneView.860.svg?label=PSGallery +[ov-minus2-psgallery-link]: https://www.powershellgallery.com/packages/HPEOneView.860 [ov-minus3-build-status-badge]: https://ci.appveyor.com/api/projects/status/a52cr3cdav90ff6q?svg=true diff --git a/Server.format.ps1xml b/Server.format.ps1xml index 3783a92..fb79458 100644 --- a/Server.format.ps1xml +++ b/Server.format.ps1xml @@ -745,7 +745,7 @@ - connections + Connections HPEOneView.ServerProfile.Connection @@ -802,7 +802,121 @@ functionType - $profileCache[$_.networkUri] + $profileCache[$_.networkUri].name + + + "{0} Gbps" -f ($_.requestedMbps / 1000) + + + "{0} Gbps" -f ($_.maximumMbps / 1000) + + + + $bootSetting = New-Object System.Collections.ArrayList + + [void]$bootSetting.Add($_.boot.priority) + + if ($_.boot.targets) + { + + for ($i=0; $i -eq $boot.targets.count; $i++) { [void]$bootSetting.Add("WWN $($_.boot.targets[$i].arrayWwpn)`nLUN $($_.boot.targets[$i].lun)") } + + } + + elseif ($_.functionType -eq "FibreChannel" -and -not ($_.boot.priority -eq "NotBootable") -and -not ($_.boot.targets)) + { + + [void]$bootSetting.Add("(Use Adapter BIOS)") + + } + + $bootSetting | Out-String | % { $_ -replace '^\s+|\s+$' } + + + + portId + + + + $address = New-Object System.Collections.ArrayList + + if ($_.macType -eq "Virtual" -and $_.mac) { [void]$address.Add("MAC $($_.mac) (V)") } + elseif ($_.macType -eq "Physical" -and $_.mac) { [void]$address.Add("MAC $($_.mac) (p)") } + + if ($_.wwpnType -eq "Virtual" -and $_.wwnn) { [void]$address.Add("WWNN $($_.wwnn) (v)") } + elseif ($_.wwpnType -eq "Physical" -and $_.wwnn) { [void]$address.Add("WWNN $($_.wwnn) (p)") } + + if ($_.wwpnType -eq "Virtual" -and $_.wwpn) { [void]$address.Add("WWPN $($_.wwpn) (v)") } + elseif ($_.wwpnType -eq "Physical" -and $_.wwpn) { [void]$address.Add("WWPN $($_.wwpn) (p)") } + + $address | Out-String | % { $_ -replace '^\s+|\s+$' } + + + + + + + + + + Controller + + HPEOneView.ServerProfile.LocalStorage.Controller + + + + + + 2 + Left + + + + 12 + Left + + + + 30 + Left + + + + 12 + Left + + + + 10 + Left + + + + 20 + Left + + + + 10 + Left + + + + 32 + Left + + + + + + + id + + + functionType + + + $profileCache[$_.networkUri].name "{0} Gbps" -f ($_.requestedMbps / 1000) diff --git a/en-US/HPEOneView.900.psm1-help.xml b/en-US/HPEOneView.900.psm1-help.xml index 18e5047..f340a7b 100644 --- a/en-US/HPEOneView.900.psm1-help.xml +++ b/en-US/HPEOneView.900.psm1-help.xml @@ -110244,5 +110244,5 @@ Once the task enters the running state, the Cmdlet will return the task resource - + \ No newline at end of file diff --git a/en-US/about_HPEOneView.900.help.txt b/en-US/about_HPEOneView.900.help.txt index 7c73696..2d92679 100644 --- a/en-US/about_HPEOneView.900.help.txt +++ b/en-US/about_HPEOneView.900.help.txt @@ -32,6 +32,15 @@ SHORT DESCRIPTION WHAT'S NEW + Release 9.00.4020.1622 + + -- [#676] Fixed -Detailed parameter output with Get-OVServerProfile. + -- [#667] Fixed mishandling of baseline resource object class type. + -- Fixed Show-OVFirmwareReport mishandling Synergy compute module resources when + calculating compliance. + -- Fixed Show-OVFirmwareReport mishandling Synergy management appliance module + resources when calculating compliance. + Release 9.00.4012.2103 -- Added Compliance Preview back to Update-OVServerFirmware with -PreviewOnly diff --git a/lib/HPEOneView_Classes.dll b/lib/HPEOneView_Classes.dll index 5692f951b2b80b1a4dc4f4687b8a2a5b34ff9b08..a93674b3732d04309c2c477091f3d29411c20ebd 100644 GIT binary patch delta 257 zcmZozBiOJ;a6$)*RQKV#jXkYBj9Yt{)c&z-;eX}RzU?2=_HF-|llTO}Hy*oD+Hc`9 zFDdcGCkbx#?Har+zf5I~4D<{w%`6QV7(^Hu_)YZ;4D?J4V1nE2omqG}SeBctyEZ+* znM@zr+WZ zWmRc4HS+>HwrlXR{4$j_G}1G+Fg7-1U=U$s;5XGXFwiqGfC+B5cV^+`VDacO`!+qm zn