Skip to content

Remove HPOVPowerDevice

Chris Lynch edited this page Mar 19, 2017 · 44 revisions

HPE OneView 3.00 Library

Remove-HPOVPowerDevice

Remove power device (iPDU)

SYNTAX

Remove-HPOVPowerDevice [-PowerDevice] <Object>[ [-force] <SwitchParameter>][ [-ApplianceConnection] <Object>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Removes a power device (iPDU) from appliance management.

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? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Confirm <SwitchParameter>

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

-PowerDevice <Object>

The Power Device object(s), name(s) or uri(s) to be removed from management.

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

-WhatIf <SwitchParameter>

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

-force <SwitchParameter>

Set to $true to force-remove the power device. Force-removing will succeed even when there are connectivity issues or resource errors.

When the request is accepted by the appliance, it does not return an Async Task Resource.

Aliases None
Required? false
Position? named
Default value False
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

HPOneView.PowerDeliveryDevice [System.Management.Automation.PSCustomObject] Power Device (iPDU) Resource Object

Return Values

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

Async remove task System.Management.Automation.PSCustomObject

When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource

Examples

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

PS C:\> $task = Remove-HPOVPowerDevice -PowerDevice "iPDU16" | Wait-HPOVTaskComplete

Remove the power device specifed by name. Wait for remove to complete.

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

PS C:\> $ipdu = Get-HPOVPowerDevice -name "iPDU24" PS C:\> Remove-HPOVPowerDevice -PowerDevice $ipdu -force -confirm:$false

Force-Remove the profile specifed by $ipdu. Disable confirmation prompt.

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

PS C:\> Get-HPOVPowerDevice | Remove-HPOVPowerDevice

Search for all power devices and remove them from appliance.

Related Links


HPE OneView 2.00 Library

Remove-HPOVPowerDevice

Remove power device (iPDU)

SYNTAX

Remove-HPOVPowerDevice [-PowerDevice] <Object> [-ApplianceConnection] <Object>[ [-force] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Removes a power device (iPDU) from appliance management.

Parameters

-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? 1
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Confirm <SwitchParameter>

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

-PowerDevice <Object>

The Power Device object(s), name(s) or uri(s) to be removed from management.

Aliases uri, name
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

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

-force <SwitchParameter>

Set to $true to force-remove the power device. Force-removing will succeed even when there are connectivity issues or resource errors.

When the request is accepted by the appliance, it does not return an Async Task Resource.

Aliases None
Required? false
Position? named
Default value False
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

HPOneView.PowerDeliveryDevice [System.Management.Automation.PSCustomObject] Power Device (iPDU) Resource Object.

Return Values

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

Async remove task.

System.Management.Automation.PSCustomObject

When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource.

Examples

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

PS C:\> $task = Remove-HPOVPowerDevice -powerDevice "iPDU16" | Wait-HPOVTaskComplete

Remove the power device specifed by name. Wait for remove to complete.

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

PS C:\> $ipdu = Get-HPOVPowerDevice -name "iPDU24" PS C:\> Remove-HPOVPowerDevice $ipdu -force -confirm:$false

Force-Remove the profile specifed by $ipdu. Disable confirmation prompt.

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

PS C:\> Get-HPOVPowerDevice | Remove-HPOVPowerDevice

Search for all power devices and remove them from appliance.

Related Links


HPE OneView 1.20 Library

Remove-HPOVPowerDevice

Remove power device (iPDU)

SYNTAX

Remove-HPOVPowerDevice [-powerDevice] <powerDevice>[ [-force] <force>][ [-WhatIf] <WhatIf>][ [-Confirm] <Confirm>] [<CommonParameters>]

Detailed Description

Removes a power device (iPDU) from appliance management.

Parameters

-powerDevice <powerDevice>

The Power Device object(s), name(s) or uri(s) to be removed from management.

Aliases None.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    false

-force <force>

Set to $true to force-remove the power device. Force-removing will succeed even when there are connectivity issues or resource errors.

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

-WhatIf <WhatIf>

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

-Confirm <Confirm>

Aliases None.
Required? false
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 Power Device (iPDU) Resource Object.

Return Values

System.Management.Automation.PSCustomObject

Async remove task.

Examples

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

PS C:\> $task = Remove-HPOVPowerDevice -powerDevice "iPDU16" PS C:\> Wait-HPOVTaskComplete $task.uri

Remove the power device specifed by name. Wait for remove to complete.

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

PS C:\> $ipdu = Get-HPOVPowerDevice -name "iPDU24" PS C:\> Remove-HPOVPowerDevice $ipdu -force -confirm:$false

Force-Remove the profile specifed by $ipdu. Disable confirmation prompt.

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

PS C:\> Get-HPOVPowerDevice | Remove-HPOVPowerDevice

Search for all power devices and remove them from appliance.

Related Links


Wiki Table of Contents

Clone this wiki locally