-
Notifications
You must be signed in to change notification settings - Fork 52
Copy HPOVServerProfile
Copy Server Profile
Copy-HPOVServerProfile [-SourceName] <Object> [-DestinationName] <String> [-assign] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
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'.
-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? | true |
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? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SourceName <Object>
Aliases [-sname] The Name, URI or the Resource Object of the source server profile to be copied.
Aliases | sname, src |
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? | true |
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)
System.Management.Automation.PSCustomObject Server Profile resource object
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Profile Create async task
-------------------------- EXAMPLE 1 --------------------------PS C:\> Copy-HPOVServerProfile -SourceName "Profile 1"
Copy "Profile 1" to a new Server Profile that is unassigned and named "Copy of Profile 1".
-------------------------- EXAMPLE 2 --------------------------PS C:\> 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 --------------------------PS C:\> 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 --------------------------PS C:\> 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 --------------------------PS C:\> 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.
- [Get-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVServerProfile)
- [New-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVServerProfile)
- [New-HPOVServerProfileAssign] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVServerProfileAssign)
- [Remove-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVServerProfile)
- [Wait-HPOVTaskComplete] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)
### HPE OneView 2.00 Library
Copy Server Profile
Copy-HPOVServerProfile [-SourceName] <Object> [-DestinationName] <String> [-Assign] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
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'.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | named |
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? | true |
Position? | 2 |
Default value | unassigned |
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? | true |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-SourceName <Object>
Aliases [-sname] The Name, URI or the Resource Object of the source server profile to be copied.
Aliases | sname, src |
Required? | true |
Position? | 0 |
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)
System.Management.Automation.PSCustomObject Server Profile resource object
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Profile Create async task
-------------------------- EXAMPLE 1 --------------------------PS C:\> Copy-HPOVServerProfile "Profile 1"
Copy "Profile 1" to a new Server Profile that is unassigned and named "Copy of Profile 1".
-------------------------- EXAMPLE 2 --------------------------PS C:\> Copy-HPOVServerProfile "Profile 1" "Profile 2"
Copy "Profile 1" to a new Server Profile that is unassigned and named "Profile 2".
-------------------------- EXAMPLE 3 --------------------------PS C:\> Copy-HPOVServerProfile "Profile 1" "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 --------------------------PS C:\> Get-HPOVServerProfile "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 --------------------------PS C:\> 11..16 | % { Copy-HPOVServerProfile "Profile Template" "Profile $_" "Encl1, bay $_" }
Copy 5 Server Profiles from "Profile Template" that will be assigned to bays 11 - 16 of Encl1.
- [Get-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVServerProfile)
- [Update-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Update-HPOVServerProfile)
- [New-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVServerProfile)
- [New-HPOVServerProfileAssign] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVServerProfileAssign)
- [Remove-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Remove-HPOVServerProfile)
- [Wait-HPOVTaskComplete] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)