Copy HPOVServerProfile - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Copy-HPOVServerProfile

Copy Server Profile

SYNTAX

Copy-HPOVServerProfile [-InputObject] <Object>[ [-DestinationName] <String>][ [-Assign] <Object>][ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]

Detailed Description

This cmdlet will copy a source Server Profile to a new instance You can assign the copy to an existing Server Device, or specify "unassigned".

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

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

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

-Assign <Object>

The name, URI, or object of the target server to assign the new profile to. If omitted, profile will be "unassigned"

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

-Confirm <>

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

-DestinationName <String>

Aliases [-dname] The name of the destination server profile that will be created. If omitted, the new name will have "Copy of " prefixed to the source name.

Aliases dname, dst
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Aliases [-sname, -src, -SourceName] The Name or Resource Object of the source server profile to be copied.

Aliases sname, src, SourceName
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <>

Aliases wi
Required?
Position? named
Default value
Accept pipeline input? false
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

System.Management.Automation.PSCustomObject

Server Profile resource object

Return Values

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

Profile Create async task

Examples

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

Copy-HPOVServerProfile -SourceName "Profile 1"

Copy "Profile 1" to a new Server Profile that is unassigned and named "Copy of Profile 1".

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

Copy-HPOVServerProfile -SourceName "Profile 1" -DestinationName "Profile 2"

Copy "Profile 1" to a new Server Profile that is unassigned and named "Profile 2".

 -------------------------- EXAMPLE 3 --------------------------

Copy-HPOVServerProfile -SourceName "Profile 1" -DestinationName "Profile 2" -assign "Encl1, Bay 9"

Copy "Profile 1" to a new Server Profile that is assigned to "Encl1, Bay 9" named "Profile 2".

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVServerProfile -Name "Profile 1" | Copy-HPOVServerProfile

Use the Get-HPOVServerProfile CMDLET and pipe to Copy-HPOVServerProfile, where the copied profile name will be "Copy of Profile 1" and unassigned.

 -------------------------- EXAMPLE 5 --------------------------

11..16 | % { Copy-HPOVServerProfile -SourceName "Profile Template" -DestinationName "Profile $_" -Assign "Encl1, bay $_" }

Copy 5 Server Profiles from "Profile Template" that will be assigned to bays 11 - 16 of Encl1.

Related Links


Top

HPE OneView 4.00 Library

Copy-HPOVServerProfile

Copy Server Profile

SYNTAX

Copy-HPOVServerProfile [-InputObject] <Object>[ [-DestinationName] <String>][ [-assign] <Object>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet will copy a source Server Profile to a new instance You can assign the copy to an existing Server Device, or specify 'unassigned'.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

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

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

-DestinationName <String>

Aliases [-dname] The name of the destination server profile that will be created. If omitted, the new name will have "Copy of " prefixed to the source name.

Aliases dname, dst
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Aliases [-sname, -src, -SourceName] The Name or Resource Object of the source server profile to be copied.

Aliases sname, src, SourceName
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-assign <Object>

The name, URI, or object of the target server to assign the new profile to. If omitted, profile will be 'unassigned'

Aliases None
Required? false
Position? 2
Default value unassigned
Accept pipeline input? false
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

System.Management.Automation.PSCustomObject

Server Profile resource object

Return Values

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

Profile Create async task

Examples

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

Copy-HPOVServerProfile -SourceName "Profile 1"

Copy "Profile 1" to a new Server Profile that is unassigned and named "Copy of Profile 1".

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

Copy-HPOVServerProfile -SourceName "Profile 1" -DestinationName "Profile 2"

Copy "Profile 1" to a new Server Profile that is unassigned and named "Profile 2".

 -------------------------- EXAMPLE 3 --------------------------

Copy-HPOVServerProfile -SourceName "Profile 1" -DestinationName "Profile 2" -assign "Encl1, Bay 9"

Copy "Profile 1" to a new Server Profile that is assigned to "Encl1, Bay 9" named "Profile 2".

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVServerProfile -Name "Profile 1" | Copy-HPOVServerProfile

Use the Get-HPOVServerProfile CMDLET and pipe to Copy-HPOVServerProfile, where the copied profile name will be "Copy of Profile 1" and unassigned.

 -------------------------- EXAMPLE 5 --------------------------

11..16 | % { Copy-HPOVServerProfile -SourceName "Profile Template" -DestinationName "Profile $_" -Assign "Encl1, bay $_" }

Copy 5 Server Profiles from "Profile Template" that will be assigned to bays 11 - 16 of Encl1.

Related Links


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