<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Powershell - ONTAP update - reboot of node fails the script in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437656#M356</link>
    <description>&lt;P&gt;I haven't done this myself, but something to try.&amp;nbsp; Have it sleep for a while, and then try to reconnect before continuing with the script?&lt;BR /&gt;&lt;BR /&gt;Start-Sleep -Seconds 60&lt;BR /&gt;Connect-NcController Cluster_Name&lt;BR /&gt;&lt;BR /&gt;When the cluster management LIF moves to another node, it doesn't change the IP address, so I wouldn't think that this would cause firewalls to start blocking it.&amp;nbsp; Let me know if that works... if not, I can test it out in our lab and see what works.&amp;nbsp; I'm curious myself.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 17:03:38 GMT</pubDate>
    <dc:creator>JimRobertson</dc:creator>
    <dc:date>2022-08-25T17:03:38Z</dc:date>
    <item>
      <title>Powershell - ONTAP update - reboot of node fails the script</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437443#M344</link>
      <description>&lt;P&gt;hi at all&lt;/P&gt;&lt;P&gt;I need help with a little ONTAP update script in PowerShell.&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the code snippet I use to monitor the process after trigger the update&lt;BR /&gt;====================================================================&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Do&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$InstallStatus = Get-NcClusterImageUpdateProgressOverview&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Write-Host "...still installing, completed nodes &amp;gt;&amp;gt; $($InstallStatus.CompletedNodeCount) &amp;lt;&amp;lt; " -ForegroundColor Darkyellow&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;wait-event -Timeout 10&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;} until ( $InstallStatus.CompletedNodeCount -eq $InstallStatus.TotalNodeCount )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;If ( $InstallStatus.CompletedNodeCount -eq $InstallStatus.TotalNodeCount ) { Write-Host "Update erfolgreich durchgeführt" -Foregroundcolor Green }&lt;/FONT&gt;&lt;BR /&gt;====================================================================&lt;/P&gt;&lt;P&gt;and here the error message:&lt;BR /&gt;====================================================================&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;...still installing, completed nodes &amp;gt;&amp;gt; 1 &amp;lt;&amp;lt; ### the first node is updated and the takeover in progress&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Get-NcClusterImageUpdateProgressOverview: &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Line |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3 | $InstallStatus = Get-NcClusterImageUpdateProgressOverview&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| API invoke failed. ### the script fails while the cluster management interface is offline&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;...still installing, completed nodes &amp;gt;&amp;gt; &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;BR /&gt;====================================================================&lt;/P&gt;&lt;P&gt;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.&lt;BR /&gt;Any hints? What can I do, that the script does not stop at this point and reconnect, if the cluster is available?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:57:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437443#M344</guid>
      <dc:creator>Christian_Ott</dc:creator>
      <dc:date>2025-06-04T09:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell - ONTAP update - reboot of node fails the script</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437656#M356</link>
      <description>&lt;P&gt;I haven't done this myself, but something to try.&amp;nbsp; Have it sleep for a while, and then try to reconnect before continuing with the script?&lt;BR /&gt;&lt;BR /&gt;Start-Sleep -Seconds 60&lt;BR /&gt;Connect-NcController Cluster_Name&lt;BR /&gt;&lt;BR /&gt;When the cluster management LIF moves to another node, it doesn't change the IP address, so I wouldn't think that this would cause firewalls to start blocking it.&amp;nbsp; Let me know if that works... if not, I can test it out in our lab and see what works.&amp;nbsp; I'm curious myself.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 17:03:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437656#M356</guid>
      <dc:creator>JimRobertson</dc:creator>
      <dc:date>2022-08-25T17:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell - ONTAP update - reboot of node fails the script</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437686#M358</link>
      <description>&lt;P&gt;I have also already thought of this and edited the (the do-until loop) scipt in:&lt;/P&gt;&lt;P&gt;===================&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;$ErrorActionPreference = "SilentlyContinue"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Do {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Try {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $InstallStatus = Get-NcClusterImageUpdateProgressOverview&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Catch {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host "API ggf. wg. Reboot nicht erreichbar - warte 2 Minuten!"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start-Sleep -Seconds 120&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp; Finally {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host "...still installing, completed nodes &amp;gt;&amp;gt; $($InstallStatus.CompletedNodeCount) &amp;lt;&amp;lt; " -ForegroundColor Darkyellow&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait-event -Timeout 5&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;} until ( $InstallStatus.CompletedNodeCount -eq $InstallStatus.TotalNodeCount )&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;===================&lt;/P&gt;&lt;P&gt;hopefully, that try-catch will not terminate the script, but the script still terminate - just without a an error message &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my opinion, the failed API call and the availability of the management interface is totally independent.&lt;/P&gt;&lt;P&gt;Is it possible to check the connection for the API calls instead the ip address of the interface?&lt;/P&gt;&lt;P&gt;I'll keep your info "reconnect the cluster" in mind and will test it after my vacation &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this hint!&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 09:25:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Powershell-ONTAP-update-reboot-of-node-fails-the-script/m-p/437686#M358</guid>
      <dc:creator>Christian_Ott</dc:creator>
      <dc:date>2022-08-26T09:25:43Z</dc:date>
    </item>
  </channel>
</rss>

