WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Automating Customer Experience Improvement Program (CEIP) configuration using vSphere API and PowerCLI

Automating Customer Experience Improvement Program (CEIP) configuration using vSphere API and PowerCLI

01.24.2019 by William Lam // 2 Comments

After publishing my recent article on the new the vSphere Health capability which takes advantage of VMware's Customer Experience Improvement Program (CEIP), I had a couple of folks reach out asking how their customers could check whether CEIP is enabled for a given vCenter Server and if not, how to enable it using Automation. For one of these customers, they had over 25+ vCenter Server, so they were not interested in doing this by hand and nor should they.

For those interested in the vSphere UI, the CEIP settings is configured in the Administration menu under the Deployment section as shown in the screenshot below.


We can also manage the CEIP settings programmatically using vSphere API and this is controlled by an Advanced vCenter Server setting called VirtualCenter.DataCollector.ConsentData. The value of this property is actually a JSON payload as you can see in the screenshot below and when updating this property, we need to update both the change version as well as whether we want CEIP enabled or disabled for a given vCenter Server.


To demonstrate the use of this API, I have created a small CEIP PowerCLI Module called vCenterCEIP.psm1 which includes two pretty self-explanatory functions:

  • Get-vCenterCEIP
  • Set-vCenterCEIP

Below is an example of using both the Get and Set function for managing your vCenter CEIP settings.

More from my site

  • Retrieving vCenter Server certificate (Machine, VMCA Root, STS & Trusted Root) details using the vSphere API 
  • Instant Clone Microsoft Windows & VM Keystroke VMworld demo and code posted
  • Retrieving detailed per-VM space utilization on VSAN
  • Quick Tip - How do I tell if NSX-V or NSX-T is installed?
  • How do you "log a reason" using PowerCLI when rebooting or shutting down ESXi host?

Categories // Automation, PowerCLI, vSphere Web Client Tags // CEIP, PowerCLI, vSphere API

Comments

  1. *protectedg barton says

    01/24/2019 at 12:21 pm

    Are any of these health checks available for the vCenter to pipe them to vROPS or some other solution, even to a VAMI dashboard? We are not allowed to connect our vCenters to internet or enable CEIP. Would be great to get these checks without the need to send usage data.

    Reply
    • William Lam says

      01/25/2019 at 4:50 am

      afaik, these Health Checks are currently only within vSphere UI and I've already explained how this works in the previous article. Also, to be clear, the way these Health Check works is to look at YOUR specific env and the way it does that is via CEIP data, so if you're not going to enable that, then this won't work 🙂

      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...