Use this procedure to upgrade your App Control macOS Agent by using Jamf Pro.
Prerequisites
This procedure assumes you have already deployed the App Control macOS Agent.
Procedure
- Download the DMG file you require. To do this, complete these steps:
- In the console menu, click Rules > Policies. The Policies page displays, with a message and link at the top for downloading Carbon Black App Control software.
- On the Policies page, click the download link at the top of the page.
- On the Download Carbon Black App Control Agent Install Packages page, click Install Package for the relevant DMG file you require, such as APC-5nnnn-xxxxx-mac.dmg.
The DMG file is downloaded to the Desktop location.
- On the Desktop, open the DMG file, and click on the mounted PKG file. View all hidden files and ensure server.conf, config.xml, and the PKG file are displayed.
- Prepare the agent upgrade folder. To do this, complete these steps:
- In Terminal, go to the /private/tmp folder, and create the agent_upgrade folder.
- Open the agent_upgrade folder, and copy into it the three files: server.conf, config.xml, and the PKG file.
- Copy the upgrade.sh file from the Desktop into the agent_upgrade folder.
- Verify the upgrade.sh file. On the Desktop, open the upgrade.sh file, and verify its contents, such as in the following sample. Ensure that the correct password is shown; it is required to disable and enable Tamper Protection.
sudo /Applications/Bit9/Tools/b9cli --password xxxxxx sudo /Applications/Bit9/Tools/b9cli --tamperprotect 0 sudo /Applications/Bit9/Tools/b9cli installer -pkg /private/tmp/agent_upgrade/Install\ Bit9\ Security\ Platform.pkg -target /Applications/ sudo /Applications/Bit9/Tools/b9cli --password xxxxxx sudo /Applications/Bit9/Tools/b9cli --tamperprotect 1
- Give execution permission for the upgrade.sh file. To do this, complete these steps:
- In Terminal, go to the agent_upgrade folder.
- Enter the command chmod +x upgrade.sh.
- Create a DMG file that is compatible with the Jamf server. To do this, complete these steps:
- Open Jamf Composer, copy the agent_upgrade folder from the tmp folder, and place it under SOURCES on the left in Composer.
- To see the list of files, navigate to private>tmp>agent_upgrade. The following files are shown: server.conf, config.xml, the PKG file, and the upgrade.sh file.
- With agent_upgrade selected under SOURCES, click Build as DMG, select the target location, and click Save. A progress window shows the status of the DMG file that is being built.
When the package is built, agent_upgrade.dmg is listed under PACKAGES on the left in Composer.
- Click on the agent_upgrade.dmg package to view details, such as its location under Desktop.
- To verify the agent_upgrade.dmg package details, in the Desktop location in Finder, click agent_upgrade.dmg.
- Upload the agent_upgrade.dmg file to the Jamf server. To do this, complete these steps:
- Log in to the Jamf server using the Jamf Admin user ID.
- Copy the agent_upgrade.dmg file from the Desktop location and paste it into the Packages repository.
- Create a policy and perform the upgrade. To create a policy with the appropriate settings and perform the upgrade, complete these steps:
- Log in to your Jamf browser.
- Under Computers, click Policies, and click New.
- Under Options, in the General section, specify a display name, such as Upgrade APPC Agent. Click Enabled, select appc for Category, and check Recurring Check-in for Trigger. Optionally, select Automatically re-run policy on failure, and specify the number of retry attempts.
- Under Options, click Packages, and click the + (plus) button. In the list of available packages on the Jamf server, click Add next to the agent_upgrade.dmg package you already uploaded.
- Under Options, in the Packages section, with the agent_upgrade.dmg package added, in the Action dropdown, click Install. Ensure all three options are selected: Fill user templates (FUT), Fill existing user home directories (FEU), and Update Autorun data.
- Under Options, click Files and Processes, and for the Execute Command field, specify the full script file path and the execution command, for example, sudo sh /private/tmp/agent_upgrade/upgrade.sh.
- Under Scope, ensure you add your list of devices which require the agent upgrade. These are listed under Selected Deployment Targets.
- Ensure all your settings are correct before continuing to the next step to save the policy.
Important: When you save your policy in the next step, the agent upgrade is performed.
- To save your policy, which will also perform the agent upgrade, click Save.
The agent upgrade is performed.
- Click Logs, and check the execution status in the Status column. For example, the status may be Pending or Completed.
- When the status is Completed, click Details, and verify the list of steps performed to ensure each step completed without any issue.
Results
The App Control macOS Agent is upgraded.