Skip to content

Copy HPOVServerProfile

Chris Lynch edited this page Dec 9, 2019 · 39 revisions

ℹ️ Note: This Wiki is going through a major change, and will be migrated to a new location. If you want to preview this new documentation, please go here.

HPE OneView 5.00 Library

Copy-HPOVServerProfile

Copy or clone a server profile.

Syntax

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

Description

You can copy a server profile to server hardware of the same server hardware type and in the same enclosure group (for servers). If you are deploying multiple servers of the same type into the same enclosure, you can create a server profile template to streamline server provisioning.

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".

Privileges: Infrastructure administrator or Server administrator

Parameters

-ApplianceConnection <Object>

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 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>

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>

The 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 --------------------------

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

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

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

Copy-HPOVServerProfile -InputObject (Get-HPOVServerProfile -Name "Profile 1") -DestinationName "Profile 2"

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

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

$ServerProfile = Get-HPOVServerProfile -Name "Profile 1" $Server = Get-HPOVServer -Name "Encl1, Bay 9" Copy-HPOVServerProfile -InputObject $ServerProfile -DestinationName "Profile 2" -assign $Server

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

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

$ServerProfile = Get-HPOVServerProfile -Name "Profile Template" 11.16 | % { Copy-HPOVServerProfile -InputObject $ServerProfile -DestinationName "Profile $_" -Assign "Encl1, bay $_" }

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

Related Links


HPE OneView 4.20 Library

Copy-HPOVServerProfile

Copy Server Profile

Syntax

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

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


HPE OneView 4.10 Library

Copy-HPOVServerProfile

Copy Server Profile

Syntax

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

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


Wiki Table of Contents

Clone this wiki locally