WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • 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

  • 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?
  • Identifying ESXi boot method & boot device

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

Comments

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

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • How to bootstrap ESXi compute only node and connect to vSAN HCI Mesh? 01/31/2023
  • Quick Tip - Easily move or copy VMs between two Free ESXi hosts? 01/30/2023
  • vSphere with Tanzu using Intel Arc GPU 01/26/2023
  • Quick Tip - Automating allowed and not allowed Datastores for use with vSphere Cluster Services (vCLS) 01/25/2023
  • ESXi with Intel Arc 750 / 770 GPU 01/24/2023

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 © 2023

 

Loading Comments...