Methods to Upgrade the App Control Agent
search cancel

Methods to Upgrade the App Control Agent

book

Article ID: 286512

calendar_today

Updated On:

Products

Carbon Black App Control (formerly Cb Protection)

Issue/Introduction

Methods to upgrade the App Control agent

Environment

  • App Control Agent: All Supported Versions
  • Microsoft Windows: All Supported Versions
  • macOS: All Supported Versions
  • Linux: All Supported Versions

Resolution

All Platforms (Automatic Upgrades via Console)

ATTENTION! When a new Agent Installer is uploaded to the Server, the global option to upgrade Agents (manually or automatically) via the Console is automatically turned off. Before turning this feature on verify which Policies are configured to start Automatic Upgrades or those which are not, and adjust accordingly.

 

Verify Policy Configuration

  1. Navigate to Rules > Policies.
  2. Click Show Columns and add the relevant Column name:
    • Server 8.10.0 and higher: Automatically Upgrade Agents
    • Server 8.9.x or earlier: Allow Upgrades
  3. Edit the relevant Policies accordingly to disable or enable automatic upgrades per-Policy.

Enable Console Upgrades

  1. Navigate to Settings > System Configuration > Advanced Options > Edit.
  2. Locate the section: Carbon Black App Control Agent:
    • Server 8.10.0 and higher: Automatic Agent Upgrades
    • Server 8.9.x or earlier: Allow Agent Upgrades
  3. Choose Enabled and click Save.

Starting Agent Upgrades

  1. Manually upgrading individual Agents
    1. Navigate to Assets > Computers
    2. Check the box for the relevant Computer(s)
    3. Action > Upgrade Computers
  2. Automatically upgrading all Agents in a Policy
    1. Navigate to Rules > Policies > Edit the relevant Policy
    2. Check the box for Automatically Upgrade Agents (or Allow Upgrades)

Windows

Manual Upgrade via Command Line (Major version)

A Major version upgrade requires the install flag "msiexec /i" be used when the product GUID changes (e.g. from 8.9 to 8.10).

Please check the Agent Product GUID to verify if it has changed.

  1. Log in to the App Control Server > Open Windows Explorer > Navigate to: \Program Files (x86)\Bit9\Parity Server\hostpkg
  2. Copy the file ParityHostAgent.msi to a location that is accessible to the endpoint being upgraded
  3. Alternatively, grab the file from the App C download URL: https://AppCserver/hostpkg/pkg.php?pkg=ParityHostAgent.msi
  4. Open Command Line as Admin and execute:
msiexec /i "C:\Path\To\ParityHostAgent.msi" /qn /L*v+ "C:\Temp\AgentUpgrade.log"

Manual Upgrade via Command Line (Minor version)

A Minor version upgrade requires the repair flag "msiexec /fvamus" be used when the product GUID does not change (e.g. from 8.9.4 to 8.9.6).

Please check the Agent Product GUID to verify if it has not changed.

  1. Log in to the App Control Server > Open Windows Explorer > Navigate to: \Program Files (x86)\Bit9\Parity Server\hostpkg
  2. Copy the file ParityHostAgent.msi to a location that is accessible to the endpoint being upgraded
  3. Alternatively, grab the file from the App C download URL: https://AppCserver/hostpkg/pkg.php?pkg=ParityHostAgent.msi
    • Note: Do not rename ParityHostAgent.msi (this will cause "Error determining package source type")
  4. Open Command Line as Admin and execute:
msiexec /fvamus "C:\Path\To\ParityHostAgent.msi" /qn /L*v "C:\Temp\AgentUpgrade.log"

Upgrades via 3rd Party Utilities

NOTES:

It is recommended to follow the same upgrade pacing as the Server (max 360 Agent upgrades/hr) when upgrading via 3rd party utilities.

Agent upgrades via 3rd party utilities require temporarily enabling allow_upgrade=1 before issuing the relevant upgrade command.

  • An Agent Config can be created for All Hosts in a specific Policy with this Value:
    allow_upgrade=1
  • Having this Agent Config received by the Agent, prior to issuing the upgrade command, would remove the requirement to script authenticating with the Agent and using the setconfigprop command.
  • This Agent Config should only be used temporarily, and disabled after upgrades are completed.

Issue the commands:

cd "C:\Program Files (x86)\Bit9\Parity Agent"
dascli password GlobalCLIPassword
dascli setconfigprop allow_upgrade=1

Pass the relevant (Major/Minor) upgrade command

Remove the flag:

cd "C:\Program Files (x86)\Bit9\Parity Agent"
dascli password InsertCLIPasswordHere
dascli setconfigprop allow_upgrade=0

macOS

Manual Upgrade via Terminal

Log in to the App Control Server.

In Windows Explorer, navigate to "C:\Program Files (x86)\Bit9\Parity Server\hostpkg"

Copy the upgrade file Bit9MacInstall.bsx to a location that is accessible to the endpoint being upgraded

From terminal issue the commands:

cd /Applications/Bit9/tools
./b9cli --password InsertCLIPasswordHere
./b9cli --tamperprotect 0
cd ~/Downloads
sudo bash Bit9MacInstall.bsx

Re-enable tamper protection after the upgrade completes:

./b9cli --tamperprotect 1

Linux

Manual Upgrade via Terminal

Log in to the App Control Server.

In Windows Explorer, navigate to "C:\Program Files (x86)\Bit9\Parity Server\hostpkg"

Copy the upgrade file Bit9RedHat{6,7,8 or 9}Install.bsx to a location that is accessible to the endpoint being upgraded

From terminal issue the commands:

cd /opt/bit9/bin
./b9cli --password InsertCLIPasswordHere
./b9cli --tamperprotect 0
sudo bash Bit9Redhat{6,7,8,9}Install.bsx

Re-enable tamper protection after the upgrade completes:

./b9cli --tamperprotect 1

 

Additional Information

  • By default the App Control Server will attempt to upgrade 1 Agent every 10 seconds when Automatic Upgrades is enabled.
  • On average, total upgrade pacing is ~360 per hour assuming no errors occur. This pacing helps prevent unnecessary load on the App Control Server.
  • More information can be found in the Agent Installation Guide.
  • Whenever a new Agent package is uploaded, the newest version of the Policy Installer files should be used for Agent installs.
  • If the Resource Download Location (by default: https://YourServer/hostpkg) is available to the endpoints, the URL can be used for the file paths:
    msiexec /i /qN "https://YourServer/hostpkg/pkg.php?pkg=ParityHostAgent.msi" B9_CONFIG="https://YourServer/hostpkg/pkg.php?pkg=configlist.xml" /L*v+ "C:\Temp\AgentUpgrade.log"