App Control: How to Cancel Agent Upgrades
search cancel

App Control: How to Cancel Agent Upgrades

book

Article ID: 291664

calendar_today

Updated On:

Products

Carbon Black App Control (formerly Cb Protection)

Issue/Introduction

To cancel App Control Console initiated upgrades

Environment

  • App Control Server: 7.x and Higher
  • App Control Agent: 7.x and Higher

Resolution

To cancel a single device:
  1. Login to the App Control Console
  2. Navigate to Assets > Computers > Click into the device (Computer Details page)
  3. Click "Remove Agent Upgrade Request"
To cancel multiple devices:
  1. Login to the App Control Server
  2. Launch SQL Server management Studio
  3. Run one of the below queries:
    --This will set all devices in "upgrade requested" or "upgrade scheduled" to "Not Requested"
    update dbo.hostmain set upgrade_state = 16 WHERE deleted = '0' and upgrade_state in ('-2147483552','-2147483616')
    --This will set the devices with host_id 1 or 2 to "Not Requested". Substitute these values with the desired host ids
    update dbo.hostmain set upgrade_state = 16 WHERE host_id in ('1',',2')
To pause any "automatic" agent upgrades:
  1. Login to the App Control Console
  2. Navigate to System Configuration (gear icon) > Advanced Options tab
  3. Click "Edit"
  4. Under the "App Control Agent" section, change "Automatic Agent Upgrades" (Server 8.9 or Earlier) or "Allow Agent Upgrades" (Server 8.10 and Higher) from "Enabled" to "Disabled"
    • Note: This is only temporary and once this setting is enabled again, any devices that were previously scheduled will start trying to upgrade again.

Additional Information

If an agent is in the "Upgrade Scheduled" status it is generally too late to cancel the request. This means that the next check-in (every 30 seconds) the agent will attempt to upgrade. If the upgrade attempt were to fail, any subsequent attempts will stop once the upgrade request is cancelled.