Restart-OVServer
Syntax
Restart-OVServer
[-Server] <Object>
[-ColdBoot]
[-Async]
[-ApplianceConnection] <Object>
[<CommonParameters>]
Description
Restart the power state of the server using the virtual power button. By default, the Cmdlet will request a "Reset" request to initiate a server to restart. Using the ColdBoot will take away and present power back to the server resource.
Examples
Example 1
Restart the specific server device by passing the Server Object via pipeline.
Example 2
Restart the specific server device by passing the Server Profile Object via pipeline.
Example 3
Restart the specific server device by passing the Server Object via pipeline, and issue a cold boot request.
Parameters
-Server <Object>
A Server hardware or Server Profile resource object.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-ColdBoot <SwitchParameter>
Use this parameter to request power be forcably removed then represented to the server resource.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | False |
| Accept pipeline input? | false |
| 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 |
-ApplianceConnection <Object>
Specify one [HPEOneView.Appliance.Connection] object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
| Aliases | wi |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Confirm <SwitchParameter>
| Aliases | cf |
|---|---|
| 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
Server Hardware Resource
Server Profile Resource
Return Values
Async task that tracks the power state change
Multiple Async tasks
Related Links
- Add-OVServer
- Convert-OVServerProfile
- Convert-OVServerProfileTemplate
- ConvertTo-OVServerProfileTemplate
- Copy-OVServerProfile
- Get-OVServer
- Get-OVServerHardwareType
- Get-OVServerProfile
- Get-OVServerProfileConnectionList
- Get-OVServerProfileMessage
- Get-OVServerProfileTemplate
- Join-OVServerProfileToTemplate
- New-OVServerProfile
- New-OVServerProfileAssign
- New-OVServerProfileAttachVolume
- New-OVServerProfileConnection
- New-OVServerProfileLogicalDisk
- New-OVServerProfileLogicalDiskController
- New-OVServerProfileTemplate
- Remove-OVServer
- Remove-OVServerProfile
- Remove-OVServerProfileTemplate
- Save-OVServerProfile
- Save-OVServerProfileTemplate
- Set-OVServerHardwareType
- Set-OVServerPower
- Set-OVServerProfile
- Set-OVServerProfileTemplate
- Start-OVServer
- Stop-OVServer
- Update-OVServer
- Update-OVServerHardwareLicenseIntent
- Update-OVServerProfile
- Get-OVServerOneTimeBoot