Start HPOVServer - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Start-HPOVServer

Power on Server Resource.

SYNTAX

Start-HPOVServer [-InputObject] <Object> [-ApplianceConnection] <Object>[ [-Async] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Start the power state of the server using the virtual power button.

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? true
Position? 1
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>

Aliases [-Server]

A Server hardware or Server Profile resource object.

Aliases Server
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)

Input Types

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

Server Hardware Resource

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

Server Profile Resource

Return Values

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

Async task that tracks the power state change

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Multiple Async tasks

Examples

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

Get-HPOVServer "Encl1, Bay 1" | Start-HPOVServer

Power on the specific server device by passing the Server Object via pipeline.

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

Get-HPOVServer "Encl1, *" | Start-HPOVServer -Async

Power on the server devices found by passing the Server Object via pipeline, and return the async task immediately.

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

Get-HPOVServerProfile "MyWebServer 1" | Start-HPOVServer

Power on the specific server device by passing the Server Profile Object via pipeline.

Related Links


Top

HPE OneView 4.00 Library

Start-HPOVServer

Power on Server Resource.

SYNTAX

Start-HPOVServer [-InputObject] <Object> [-ApplianceConnection] <Object>[ [-Async] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Start the power state of the server using the virtual power button.

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? true
Position? 1
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>

Aliases [-Server]

A Server hardware or Server Profile resource object.

Aliases Server
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)

Input Types

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

Server Hardware Resource

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

Server Profile Resource

Return Values

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

Async task that tracks the power state change

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Multiple Async tasks

Examples

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

Get-HPOVServer "Encl1, Bay 1" | Start-HPOVServer

Power on the specific server device by passing the Server Object via pipeline.

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

Get-HPOVServer "Encl1, *" | Start-HPOVServer -Async

Power on the server devices found by passing the Server Object via pipeline, and return the async task immediately.

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

Get-HPOVServerProfile "MyWebServer 1" | Start-HPOVServer

Power on the specific server device by passing the Server Profile Object via pipeline.

Related Links


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