HewlettPackard / POSH-HPEOneView

PowerShell language bindings library for HPE OneView.
http://hewlettpackard.github.io/POSH-HPEOneView/
125 stars 52 forks source link

Cmdlet for starting the second Composer Node in a Synergy prior to enabling HA #528

Closed erikgraa closed 2 years ago

erikgraa commented 3 years ago

Is there a Cmdlet for starting the second Composer Node in a HPE Synergy after you have e.g. done a Factory Reset?

The Cmdlet Enable-OVComposerHANode exists but requires that the second Composer Node is already started.

ChrisLynchHPE commented 3 years ago

It looks like the Cmdlet that I wrote wasn't exported, and isn't available to use. In the meantime, you can use the following to perform that operation:

$BayID = 1
$Enclosure = Get-OVEnclosure -Name EnclosureName

$_request = @{

    op    = 'replace';
    path  = ('/applianceBays/{0}/power' -f $BayID);
    value = 'on'

}

Send-OVRequest -Uri $Enclosure.uri -Method PATCH -Body $_PatchRequest -AddHeader @{'If-Match' = $Enclosure.eTag} | Wait-OVTaskComplete
erikgraa commented 3 years ago

Thank you @ChrisLynchHPE

ChrisLynchHPE commented 3 years ago

You're welcome. Do know that you can only power on a device, which will be provided by Start-OVEnclosureAppliance. You stop or power off a Composer or VM using Stop-OVAppliance.

ChrisLynchHPE commented 3 years ago

I added this Cmdlet to the Release 5.50.2607.2724 and in PowerShell Gallery.

ChrisLynchHPE commented 3 years ago

This issue will be addressed in other library versions after the US holiday break, in early Dec.

ChrisLynchHPE commented 3 years ago

This is now addressed in the following releases:

ChrisLynchHPE commented 2 years ago

Closing due to no further activity. If you wish, feel free to re-open to discuss further.