Replace PROXY_IP_OR_DOMAIN, PROXY_PORT, USERNAME and PASSWORD with the corresponding values.
Remove/rename the `C:\ProgramData\CarbonBlack\Datafiles\db_cfg` as a new file will be created with the updated details from the cfg.ini file
Start the sensor service, this will force the sensor to update its proxy internal configuration, with the caveat that should the sensor be unable to connect to the proxy server/appliance, it may attempt to bypass it
sc start CbDefense
Reload/refresh the sensor configuration with the recently-made changes:
repcli updateconfig
Remove device from bypass:
repcli bypass 0
To force an immediate check-in (optional):
repcli cloud hello
Additional Information
PreferStaticProxyOverLastUsed is optional if the intent is making a successful connection to the cloud. However, if the goal is for the sensor to prioritize the new proxy connection provided over other previously used, then PreferStaticProxyOverLastUsed should be used.
Important: repcli functionality needs to be enabled, in order to follow the steps above
If the current cloud communications are all still successful, the proxy won't re-evaluate it's current proxy settings. Restarting the CbDefense service might be needed for immediate re-evaluation.