Update HPOVServerHardwareLicenseIntent - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Update-HPOVServerHardwareLicenseIntent

Change the license intent of a server.

SYNTAX

Update-HPOVServerHardwareLicenseIntent [-InputObject] <Object>[ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

The licensing intent of a server may be changed to either "OneView" (HPE OneView Advanced) or "OneViewNoiLO" (HPE OneView Advanced w/o iLO). The server must be unlicensed and managed in order to be able to update the licensing intent. In addition, a server licensed with "OneViewNoiLO" may be upgraded to "OneView", provided a "OneView" license is available and the server does not already have an embedded or "iLO Advanced" license installed.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? False
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

A server hardware resource from Get-HPOVServer.

Aliases name, Server
Required? True
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.ServerHardware [System.Management.Automation.PSCustomObject]

A server hardware resource from Get-HPOVServer.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Asyncronous task resource to monitor.

null

If the resource is already assigned a valid upgraded license, a null response is returned.

Examples

 -------------------------- EXAMPLE 1 --------------------------

$Server = Get-HPOVServer -Name iLO123.domain.com -ErrorAction Stop Update-HPOVServerHardwareLicenseIntent -InputObject $Server

Get the specific server resource, and attempt upgrading the license to "OneView".

 -------------------------- EXAMPLE 2 --------------------------

$Servers = Get-HPOVServer | ? licensingIntent -eq "OneViewNoIlo" $Tasks = $Servers | Update-HPOVServerHardwareLicenseIntent -async

Get server resources with "OneViewNoIlo" license, and attempt upgrading the license to "OneView".

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️