VMware vSphere

 View Only
  • 1.  PowerCLI - Command to disable CEIP on VMHost

    Posted May 24, 2018 08:30 PM

    Hi,

    Is there a way to disable the CEIP on the VMHost using PowerCLI?

    I found a lot of sites saying how can I disable it on PowerCLI, but what about on the host?

    The first time you access a VMHost using the web client, appears a box asking if you want to participate on the CEIP.



  • 2.  RE: PowerCLI - Command to disable CEIP on VMHost

    Posted May 28, 2018 12:41 PM

    Hi Vandrey,

    this setting is controlled by the Hosts' advanced setting parameter

      UserVars.HostClientCEIPOptIn

    that has the possible values 0 (ask me), 1 (yes) and 2 (no)

    With PowerCLI you can set this option like this

      Get-VMHost <ESXi-Hostname-Or-IP> | Set-VmHostAdvancedConfiguration -Name UserVars.HostClientCEIPOptIn -Value 2

    - Andreas



  • 3.  RE: PowerCLI - Command to disable CEIP on VMHost

    Posted May 30, 2018 02:14 PM

    Thanks a lot peetz​!



  • 4.  RE: PowerCLI - Command to disable CEIP on VMHost

    Posted Aug 16, 2018 02:45 PM

    Is there any PowerCLI command to check the CEIP on vCenter



  • 5.  RE: PowerCLI - Command to disable CEIP on VMHost

    Posted Aug 17, 2018 11:44 AM

    HarjitSB​,

    Hi! Try this:

    Get-AdvancedSetting -Entity <vCenter> -Name VirtualCenter.DataCollector.ConsentData | Format-Table -Wrap

    That is the setting (at least the description says so).



  • 6.  RE: PowerCLI - Command to disable CEIP on VMHost
    Best Answer

    Broadcom Employee
    Posted Feb 04, 2020 10:29 AM

    If you stumble on this post like I did, the Set-VmHostAdvancedConfiguration cmdlet throws a warning that its deprecated and that the Set-AdvancedSetting cmdlet should be used instead. This can be achieved using the following syntax:

    Get-AdvancedSetting -Entity $esxiHostname -Name UserVars.HostClientCEIPOptIn | Set-AdvancedSetting -Value 2 -Confirm:$false