Skip to content

Commit

Permalink
-- [#647] Fixed ConvertTo-OVPowerShellScript mishandling BIOS consist…
Browse files Browse the repository at this point in the history
…ency policy when parsing a server profile template.

-- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
-- Updated core library to handle web proxy in a more efficient method.
-- Updated core library to use TLS1.2 only.

Signed-off-by: Chris Lynch <chris.lynch@hpe.com>
  • Loading branch information
ChrisLynchHPE committed Sep 22, 2023
1 parent 8e274a7 commit 200a13a
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 40 deletions.
16 changes: 7 additions & 9 deletions HPEOneView.800.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'HPEOneView.800.psm1'

# Version number of this module.
ModuleVersion = '8.00.3528.2178'
ModuleVersion = '8.00.3642.2784'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -156,14 +156,12 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = 'Release 8.00.3528.2178
- [#633] Fixed mishandling of network sets when assigned to a profile connection and processing with ConvertTo-OVPowerShellScript.
- [#634] Fixed missing -IloHostname parameter in ConvertTo-OVPowerShellScript when processing either a server profile template or server profile object.
- [#637] Fixed generating user role output in ConvertTo-OVPowerShellScript.
- [#638] Fixed Set-OVNetworkSet inadvertantly trying to change the network set type to REGULAR.
- Added workaround to supporting Gen10 Plus V2 platforms and supporting firmware management.
- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.'
ReleaseNotes = 'Release 8.00.3642.2784
- [#647] Fixed ConvertTo-OVPowerShellScript mishandling BIOS consistency policy when parsing a server profile template.
- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support entitlement data with the backend.
- Updated core library to handle web proxy in a more efficient method.
- Updated core library to use TLS1.2 only.'

# Prerelease string of this module
# Prerelease = ''
Expand Down
87 changes: 61 additions & 26 deletions HPEOneView.800.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ THE SOFTWARE.
#>

# Set HPEOneView POSH Library Version
[Version]$ModuleVersion = '8.00.3528.2178'
[Version]$ModuleVersion = '8.00.3642.2784'
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 "<ScriptBlock>" }).position.text -match "-verbose"
Expand Down Expand Up @@ -15353,7 +15353,7 @@ function ConvertTo-OVPowerShellScript

$biosConsistency = $bios.complianceControl.Replace('CheckedMinimum','Minimum').Replace('Unchecked', 'None').Replace('Checked', 'Exact')

[void]$scriptCode.Add((Generate-CustomVarCode -Prefix 'biosConsistency' -Value ('"{0}"' -f $bmConsistency )))
[void]$scriptCode.Add((Generate-CustomVarCode -Prefix 'biosConsistency' -Value ('"{0}"' -f $biosConsistency )))

$biosParam += ' -BiosConsistencyChecking $biosConsistency '

Expand Down Expand Up @@ -27142,6 +27142,14 @@ function Enable-OVRemoteSupport

}

'interconnects'
{

$_ID = $InputObject.uri.Split("/")[3]
$_uri = '{0}/{1}' -f $RemoteSupportInterconnectSettingsUri,$_ID

}

default
{

Expand Down Expand Up @@ -27210,7 +27218,7 @@ function Disable-OVRemoteSupport

# .ExternalHelp HPEOneView.800.psm1-help.xml

[CmdLetBinding (DefaultParameterSetName = "default")]
[CmdLetBinding (DefaultParameterSetName = "default", SupportsShouldProcess, ConfirmImpact = 'High')]
Param
(

Expand Down Expand Up @@ -27349,6 +27357,14 @@ function Disable-OVRemoteSupport

}

'interconnects'
{

$_ID = $InputObject.uri.Split("/")[3]
$_uri = '{0}/{1}' -f $RemoteSupportInterconnectSettingsUri,$_ID

}

default
{

Expand All @@ -27361,41 +27377,47 @@ function Disable-OVRemoteSupport

}

try
$_ShouldProcessMessage = "disable remote support"
if ($PSCmdlet.ShouldProcess($InputObject.name, $_ShouldProcessMessage))
{

$_Resp = Send-OVRequest -Uri $_uri -Method PATCH -Body $_PatchOperation -Hostname $ApplianceConnection
try
{

}
$_Resp = Send-OVRequest -Uri $_uri -Method PATCH -Body $_PatchOperation -Hostname $ApplianceConnection

catch
{
}

$PSCmdlet.ThrowTerminatingError($_)
catch
{

}
$PSCmdlet.ThrowTerminatingError($_)

if ($PSBoundParameters['Async'])
{
}

$_Resp
if ($PSBoundParameters['Async'])
{

}
$_Resp

else
{
}

Try
else
{

$_Resp | Wait-OVTaskComplete
Try
{

}
$_Resp | Wait-OVTaskComplete

Catch
{
}

$PSCmdlet.ThrowTerninatingError($_)
Catch
{

$PSCmdlet.ThrowTerninatingError($_)

}

}

Expand Down Expand Up @@ -30582,6 +30604,17 @@ function Get-OVRemoteSupportEntitlementStatus

}

$ResourceCategoryEnum.Interconnect
{

"[{0}] Processing interconnect hardware device: {1}" -f $MyInvocation.InvocationName.ToString().ToUpper(), $InputObject.name | Write-Verbose

$InputObject | Add-Member -NotePropertyName remoteSupportUri -NotePropertyValue $InputObject.remoteSupport.remoteSupportUri -Force

[void]$_ResourcesToProcess.Add($InputObject.PSObject.Copy())

}

default
{

Expand Down Expand Up @@ -47972,7 +48005,7 @@ function Update-OVServerFirmware

"[{0}] Component is System ROM, using workaround method for baseline version: {1}" -f $MyInvocation.InvocationName.ToString().ToUpper(), $_Component.baselineVersion | Write-Verbose

$_ServerBaseID = $Server.romVersion.Split(" ")[0]
$_ServerBaseID = $InputObject.romVersion.Split(" ")[0]

$_ComponentBaselineVersionWorkaround = $Baseline.FwComponents | Where { $_.Name -match $_ServerBaseID -and $_.Version.PatchVersion -eq $_Component.baselineVersion.Replace("/", "")} | Select -First 1

Expand Down Expand Up @@ -124329,7 +124362,7 @@ function Get-OVTask
[Parameter (Mandatory = $false, ParameterSetName = "ResourceCategory")]
[ValidateNotNullorEmpty()]
[ValidateSet ("Unknown","New","Running","Pending","Stopping","Suspended","Terminated","Killed","Completed","Error","Warning")]
[String]$State,
[String[]]$State,

[Parameter (Mandatory = $false, ParameterSetName = "Default")]
[Parameter (Mandatory = $false, ParameterSetName = "ResourceCategory")]
Expand Down Expand Up @@ -124446,9 +124479,11 @@ function Get-OVTask
if ($PSBoundParameters['State'])
{

"[{0}] State Parameter value: $($State)" -f $MyInvocation.InvocationName.ToString().ToUpper() | Write-Verbose
$_State = [string]::Join(" OR ", $State)

"[{0}] State Parameter value: $($_State)" -f $MyInvocation.InvocationName.ToString().ToUpper() | Write-Verbose

$Uri += "&filter=taskState='$State'"
$Uri += "&filter=taskState='$_State'"

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<SupportedUICultures>
<UICulture>
<UICultureName>en-US</UICultureName>
<UICultureVersion>8.0.3528.2182</UICultureVersion>
<UICultureVersion>8.0.3642.2784</UICultureVersion>
</UICulture>
</SupportedUICultures>
</HelpInfo>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ModuleInfo>
<ModuleContentURI>http://hewlettpackard.github.io/POSH-HPEOneView/UpdateHelp</ModuleContentURI>
<Version>8.0.3528.2178</Version>
<Version>8.0.3642.2784</Version>
</ModuleInfo>
38 changes: 37 additions & 1 deletion en-US/HPEOneView.800.psm1-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10610,6 +10610,20 @@ Minimum required privileges: Infrastructure administrator, Server administrator,
</maml:description>
<command:parameterValue required="False" variableLength="False">Object</command:parameterValue>
</command:parameter>
<command:parameter required="False" globbing="True" pipelineInput="false" position="named" parameterSetName="(All)">
<maml:name>WhatIf</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="False" variableLength="False" />
</command:parameter>
<command:parameter required="False" globbing="True" pipelineInput="false" position="named" parameterSetName="(All)">
<maml:name>Confirm</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="False" variableLength="False" />
</command:parameter>
</command:syntaxItem>
</command:syntax>
<command:parameters>
Expand All @@ -10636,6 +10650,17 @@ Minimum required privileges: Infrastructure administrator, Server administrator,
</dev:type>
<dev:defaultValue>False</dev:defaultValue>
</command:parameter>
<command:parameter required="False" globbing="False" pipelineInput="false" position="named" parameterSetName="(All)" aliases="cf">
<maml:name>Confirm</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="False" variableLength="False" />
<dev:type>
<maml:name />
</dev:type>
<dev:defaultValue />
</command:parameter>
<command:parameter required="True" globbing="False" pipelineInput="true (ByValue)" position="named" parameterSetName="default" aliases="None">
<maml:name>InputObject</maml:name>
<maml:description>
Expand All @@ -10647,6 +10672,17 @@ Minimum required privileges: Infrastructure administrator, Server administrator,
</dev:type>
<dev:defaultValue />
</command:parameter>
<command:parameter required="False" globbing="False" pipelineInput="false" position="named" parameterSetName="(All)" aliases="wi">
<maml:name>WhatIf</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="False" variableLength="False" />
<dev:type>
<maml:name />
</dev:type>
<dev:defaultValue />
</command:parameter>
</command:parameters>
<command:inputTypes>
<!--Input Types-->
Expand Down Expand Up @@ -107273,5 +107309,5 @@ Once the task enters the running state, the Cmdlet will return the task resource
</maml:navigationLink>
</maml:relatedLinks>
</command:command>
<!--Edited on: 2023-05-31T22:14:28:94.940Z-->
<!--Edited on: 2023-09-21T23:18:12:94.945Z-->
</helpItems>
Expand Down
11 changes: 9 additions & 2 deletions en-US/about_HPEOneView.800.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ SHORT DESCRIPTION

WHAT'S NEW

Release 8.00.3642.2784

-- [#647] Fixed ConvertTo-OVPowerShellScript mishandling BIOS consistency
policy when parsing a server profile template.
-- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support
entitlement data with the backend.
-- Updated core library to handle web proxy in a more efficient method.
-- Updated core library to use TLS1.2 only.

Release 8.00.3528.2178

-- Support for PowerShell 5 and 6 is now deprecated and no longer supported.
Expand All @@ -44,8 +53,6 @@ WHAT'S NEW
type to REGULAR.
-- Added workaround to supporting Gen10 Plus V2 platforms and supporting
firmware management.
-- Added Update-OVRemoteSupportEntitlement Cmdlet to refresh remote support
entitlement data with the backend.

Release 8.00.3439.1646

Expand Down
Binary file modified lib/HPEOneView_Classes.dll
Binary file not shown.

1 comment on commit 200a13a

@ChrisLynchHPE
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tagging: -- [#642] Fixed incorrect use of internal variable within Update-OVServerFirmware.

Please sign in to comment.