- Community Home
- >
- Software
- >
- HPE OneView
- >
- Update-OVServerProfile does not wait on task compl...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 07:24 PM - last edited on 08-15-2023 09:08 PM by support_s
08-14-2023 07:24 PM - last edited on 08-15-2023 09:08 PM by support_s
Update-OVServerProfile does not wait on task complete
We are trying to automate firmware updates for our VMware ESXi systems, as part of the script we run Update-OVServerProfile to update from template.
The command unfortunately returns before the task it is complete, even if we pair it with "Update-OVServerProfile -Confirm:$false | Wait-OVTaskComplete"
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.
The GUI shows the task still in progress. What other ways can I monitor this task to have finished before moving on?
- Tags:
- OneView
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 10:29 AM
08-15-2023 10:29 AM
Re: Update-OVServerProfile does not wait on task complete
A few things:
- Update-OVServerProfile does wait for tasks to complete by default. That is why the -Async parameter exists. Within the Update-OVServerProfile Cmdlet, there is a call to Wait-OVTaskComplete. However, the predefined timeout period is 20 minutes. It can be overidden with a call similar to Get-OVServerProfile -Name MyProfile1 | Update-OVServerProfile -Confirm:$false -Async | Wait-OVTaskComplete -Timeout (New-Timespan -Minutes 20).
- Since this is a VMware environment, any reason why you aren't using vLCM?
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 10:36 AM
08-15-2023 10:36 AM
Re: Update-OVServerProfile does not wait on task complete
Ok, timeout being 20 minutes is the problem as even there were only 3 updates but SPP being involved it takes around 40 minutes.
I worked around this by waiting in a loop with "(get-ovserver -ServerName $server | Get-OVserverProfile),.state" checking for Normal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 10:43 AM
08-15-2023 10:43 AM
Re: Update-OVServerProfile does not wait on task complete
Just get the collection of tasks that return from Update-OVServerProfile, storing them into a variable, then loop using Get-OVTask to view its status instead. You want to watch the task (aka job) running. If it ends, especially with an error, you need to look at the task object and specifically the taskErrors property.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 07:12 AM
08-24-2023 07:12 AM
Re: Update-OVServerProfile does not wait on task complete
Hello @uzimmermann,
Let us know if you were able to resolve the issue.
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.