WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / How to automate checking for new vCenter Server updates in vSphere Lifecycle Manager (vLCM)?

How to automate checking for new vCenter Server updates in vSphere Lifecycle Manager (vLCM)?

11.27.2022 by William Lam // 2 Comments

A question that I had received during VMware Explore Barcelona, was how to automate the checking for new updates that are available for their vCenter Server? In the vSphere UI, when a new update is available and applicable, you will see a new blue label called Update Available under the Summary view when your vCenter Serve inventory object is selected.


When you click on the label, it will take you the vCenter Server Update Planner, a feature that was introduced back in vSphere 7, which is part of the overall vSphere Lifecycle Manager (vLCM) solution.


Here you will be shown a list of all applicable vCenter Server update(s) and/or upgrade(s) for your specific version of vCenter Server, including useful information like severity and even direct links to the release notes, which is extremely useful to quickly get a glance at a particular release.

As you might expect, all of the information displayed within the vSphere UI is available programmatically using the vCenter Server vLCM REST API, enabling users to periodically check when an update is available and create and run interoperability reports using the vCenter Server Update Planner feature.

To check whether there are any update(s) available for your specific vCenter Server, you can use the List Update Pending API which will return a list of update(s) that are applicable. To demonstrate this vCenter Server REST API, I will be using PowerCLI and the following snippet below will retrieve the version, build, type, severity, release date and release note URL.

Connect-CiSServer -Server 192.168.30.181 -user administrator[at]vsphere[dot]local -Password VMware1!

$vcLcmUpdateService = Get-CisService -Name com.vmware.vcenter.lcm.update.pending
$updates = $vcLcmUpdateService.list().updates
$updates | select version, build, update_type, severity, release_date, release_notes

As you can see from the output, the information is exactly the same as what is provided in the vSphere UI. Using this API, users can now automate the checking for new updates versus having to use the vSphere UI and this can be setup as a scheduled job that you run periodically.

More from my site

  • How to configure VMware Compatibility Guide (VCG) database for vSphere Lifecycle Manager (vLCM) in an air-gapped environment?
  • Quick Tip - Downloading ESXi Image (ISO or ZIP) from vSphere Lifecycle Manager (vLCM)
  • Quick Tip - vCenter Server Advanced Settings Reference
  • Downgrading new VMware vSphere Foundation (VVF) or VMware Cloud Foundation (VCF) licenses to 7.x
  • Updating handshakeTimeoutMs setting for ESXi 7.x & 8.x using configstorecli

Categories // Automation, PowerCLI, vSphere 7.0, vSphere 8.0 Tags // vCenter Server, vSphere 7.0, vSphere 8.0, vSphere Lifecycle Manager

Comments

  1. *protectedJoffrey says

    11/29/2022 at 1:34 am

    Can we use the VEBA to be notified when there are news updates ?

    Reply
    • William Lam says

      11/29/2022 at 6:00 am

      It should be possible since both VUM/vLCM generate a number of events. You can view them at https://github.com/lamw/vcenter-event-mapping/blob/master/vsphere-8.0-IA.md and search for "com.vmware.vcIntegrity"

      Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...