Running Offline Pruning on the Filenames or Pathnames Tables
book
Article ID: 370589
calendar_today
Updated On:
Products
Carbon Black App Control (formerly Cb Protection)
Issue/Introduction
Steps to execute the Offline Pruning Scripts for the filenames or pathnames tables.
Environment
App Control Server: All Supported Versions
Microsoft SQL Server: All Supported Versions
Cause
Offline pruning of the filenames or pathnames tables should be done when those tables are near or have reached their limit of 2.14 Billion rows.
Offline pruning is also recommended when the filenames or pathnames tables have grown too big and have a large percentage of orphaned data thus causing performance and disk space issues
These steps should only be completed as advised by Support.
Resolution
Before proceeding with the steps
Open a case with Support and request the relevant Offline Pruning Script for the table/Server being pruned.
Plan for a 24-hour maintenance window while the Pruning Script executes.
Take a known-good, full backup of the DAS database.
Prepare for Offline Pruning Execution
Log in to the application server hosting the Console as the Carbon Black Service Account.
If an Agent is installed on the application server, temporarily stop and unload the Agent to prevent Tamper Protection blocks.
Stop (or temporarily disable) the services for the App Control Reporter and App Control Server.
Any external application that accesses the das database should be temporarily stopped.
This includes things like the SQL Job Agent, backups, reporting, etcetera.
The SQL Server service itself should remain running, however.
Initiate the Offline Pruning
Extract the OfflineFilePathnamePruning.zip locally (ex: C:\Temp\)
Double click the relevant bat file (ex: RunOfflinePruning.bat) (do not use "Run as Administrator")
Input the SQL Server\SQL Instance name
Single Tier (local database): Enter a single dot .
Two Tier (remote database): Enter the SQLServer\SQLInstance name, example: SomeSQL\SomeInstance
Wait for Connection Tests to complete
Once successful, and prompted, enter Y to proceed.
IMPORTANT: Do not interrupt the process or access the das database during this time.
Doing so will require a full database restore and restarting the process.
Upon Completion the command prompt will include the STOP Time and instructions
Be sure to copy the output of the command line window to a text file before closing it.
Do not yet start any services.
Reclaim Filename/Pathname IDs for re-use
Run SQL Server Management Studio as the Carbon Black Service Account
First, because the Agents have a backlog of filenames, increase the Chunk Size for the related Scheduled Tasks