<?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 Update-OVServerProfile does not wait on task complete in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194148#M8343</link>
    <description>&lt;P&gt;We are trying to automate firmware updates for our VMware ESXi systems, as part of the script we run&amp;nbsp;Update-OVServerProfile to update from template.&lt;/P&gt;&lt;P&gt;The command unfortunately returns before the task it is complete, even if we pair it with "Update-OVServerProfile -Confirm:$false | Wait-OVTaskComplete"&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example I am updating some Gen10 Plus Synergy modules and there are 3 firmware updates. BIOS, 4820C firmware and SPS firmware in this order. For the 4820 firmware it boots the SSP and the task returns as complete while the SSP boots.&lt;/P&gt;&lt;P&gt;The GUI shows the task still in progress. What other ways can I monitor this task to have finished before moving on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 04:08:57 GMT</pubDate>
    <dc:creator>uzimmermann</dc:creator>
    <dc:date>2023-08-16T04:08:57Z</dc:date>
    <item>
      <title>Update-OVServerProfile does not wait on task complete</title>
      <link>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194148#M8343</link>
      <description>&lt;P&gt;We are trying to automate firmware updates for our VMware ESXi systems, as part of the script we run&amp;nbsp;Update-OVServerProfile to update from template.&lt;/P&gt;&lt;P&gt;The command unfortunately returns before the task it is complete, even if we pair it with "Update-OVServerProfile -Confirm:$false | Wait-OVTaskComplete"&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example I am updating some Gen10 Plus Synergy modules and there are 3 firmware updates. BIOS, 4820C firmware and SPS firmware in this order. For the 4820 firmware it boots the SSP and the task returns as complete while the SSP boots.&lt;/P&gt;&lt;P&gt;The GUI shows the task still in progress. What other ways can I monitor this task to have finished before moving on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 04:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194148#M8343</guid>
      <dc:creator>uzimmermann</dc:creator>
      <dc:date>2023-08-16T04:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Update-OVServerProfile does not wait on task complete</title>
      <link>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194188#M8345</link>
      <description>&lt;P&gt;A few things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Update-OVServerProfile&lt;/FONT&gt; does wait for tasks to complete by default.&amp;nbsp; That is why the &lt;FONT face="courier new,courier"&gt;-Async&lt;/FONT&gt; parameter exists.&amp;nbsp; Within the &lt;FONT face="courier new,courier"&gt;Update-OVServerProfile&lt;/FONT&gt; Cmdlet, there is a call to &lt;FONT face="courier new,courier"&gt;Wait-OVTaskComplete&lt;/FONT&gt;.&amp;nbsp; However, the predefined timeout period is 20 minutes.&amp;nbsp; It can be overidden with a call similar to &lt;FONT face="courier new,courier"&gt;Get-OVServerProfile -Name MyProfile1 | Update-OVServerProfile -Confirm:$false -Async | Wait-OVTaskComplete -Timeout (New-Timespan -Minutes 20)&lt;/FONT&gt;.&lt;/LI&gt;&lt;LI&gt;Since this is a VMware environment, any reason why you aren't using vLCM?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 15 Aug 2023 17:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194188#M8345</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2023-08-15T17:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Update-OVServerProfile does not wait on task complete</title>
      <link>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194189#M8346</link>
      <description>&lt;P&gt;Ok, timeout being 20 minutes is the problem as even there were only 3 updates but SPP being involved it takes around 40 minutes.&lt;/P&gt;&lt;P&gt;I worked around this by waiting in a loop with "(get-ovserver -ServerName $server | Get-OVserverProfile),.state" checking for Normal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 17:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194189#M8346</guid>
      <dc:creator>uzimmermann</dc:creator>
      <dc:date>2023-08-15T17:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update-OVServerProfile does not wait on task complete</title>
      <link>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194190#M8347</link>
      <description>&lt;P&gt;Just get the collection of tasks that return from &lt;FONT face="courier new,courier"&gt;Update-OVServerProfile&lt;/FONT&gt;, storing them into a variable, then loop using&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Get-OVTask&lt;/FONT&gt; to view its status instead.&amp;nbsp; You want to watch the task (aka job) running.&amp;nbsp; If it ends, especially with an error, you need to look at the task object and specifically the &lt;FONT face="courier new,courier"&gt;taskErrors&lt;/FONT&gt; property.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 17:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194190#M8347</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2023-08-15T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Update-OVServerProfile does not wait on task complete</title>
      <link>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194940#M8372</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1945146"&gt;@uzimmermann&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Let us know if you were able to resolve the issue.&lt;/P&gt;
&lt;P&gt;If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/update-ovserverprofile-does-not-wait-on-task-complete/m-p/7194940#M8372</guid>
      <dc:creator>Sunitha_Mod</dc:creator>
      <dc:date>2023-08-24T14:12:55Z</dc:date>
    </item>
  </channel>
</rss>

