hi at all
I need help with a little ONTAP update script in PowerShell.
The point is the reboot of one node of a HA cluster. The cluster managment interface is moved to the other node and during this action, my script fails because the cluster is not responding. A query to the availability of the ipaddress is not possible, because the PING is blocked by the firewall is many network segments.
here is the code snippet I use to monitor the process after trigger the update
====================================================================
Do
{
$InstallStatus = Get-NcClusterImageUpdateProgressOverview
Write-Host "...still installing, completed nodes >> $($InstallStatus.CompletedNodeCount) << " -ForegroundColor Darkyellow
wait-event -Timeout 10
} until ( $InstallStatus.CompletedNodeCount -eq $InstallStatus.TotalNodeCount )
If ( $InstallStatus.CompletedNodeCount -eq $InstallStatus.TotalNodeCount ) { Write-Host "Update erfolgreich durchgeführt" -Foregroundcolor Green }
====================================================================
and here the error message:
====================================================================
...still installing, completed nodes >> 1 << ### the first node is updated and the takeover in progress
Get-NcClusterImageUpdateProgressOverview:
Line |
3 | $InstallStatus = Get-NcClusterImageUpdateProgressOverview
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| API invoke failed. ### the script fails while the cluster management interface is offline
...still installing, completed nodes >> <<
====================================================================
During this do-until-loop, the cluster interface is moved to the other node and offline for a short time - this causes the script to fail.
Any hints? What can I do, that the script does not stop at this point and reconnect, if the cluster is available?
thanks for your help
Christian