Collect Agent Performance Logs
book
Article ID: 286081
calendar_today
Updated On:
Products
Carbon Black App Control (formerly Cb Protection)
Show More
Show Less
Issue/Introduction
Steps to collect App Control Agent logs for performance cases.
Environment
App Control Agent: All Supported Versions
Microsoft Windows: All Supported Versions
macOS: All Supported Versions
Linux: All Supported Versions
Resolution
Step 1: Gather Relevant Background Information
Date/Time performance issue started occurring (did any change precede the start of it?)
Actions being performed when performance is degraded
Is the performance associated with a specific application? (If yes, what is the application name?).
Does the vendor of the application have a recommended exclusion list and has it been implemented?
Any paths/processes known to be associated with the application
Are there any blocks seen locally or within the App Control console during the performance issue?
Are results the same if the Agent is stopped and unloaded?
What is the time difference with Agent stopped & unloaded vs fully operational (enabled)?
Step 2: Gather the Logs
Windows
Open an administrative command prompt
Issue the commands:
cd "C:\Program Files (x86)\Bit9\Parity Agent"
dascli password GlobalCLIPassword
dascli setconfigprop max_rolling_trace_size_mb=0
dascli resetcounters
dascli flushlogs
dascli tamperprotect 0
dascli debuglevel 6
dascli kerneltrace 4 -1
dascli nettrace 1
dascli diagnostics +performance
Start a Procmon capture
Collect 5-10 mins of data during the ongoing performance issue.
Stop the Procmon capture and save "All Events" as a PML file.
In the administrative command prompt execute the following commands to capture and reduce the logging levels to normal:
dascli capture "%userprofile%\Desktop\%computername%-Performance.zip"
dascli password GlobalCLIPassword
dascli setconfigprop max_rolling_trace_size_mb=50
dascli debuglevel 0
dascli kerneltrace 2
dascli nettrace 0
dascli diagnostics -performance
dascli tamperprotect 1
Upload all collected data.
macOS
Open Terminal
Issue the commands:
cd /Applications/Bit9/Tools
./b9cli --password 'GlobalCLIPassword'
./b9cli --resetcounters
./b9cli --flushlogs
./b9cli --debuglevel 4
./b9cli --kerneltrace 4
./b9cli --nettrace 1
Open the macOS Activity Monitor (Applications > Utilities > Activity Monitor).
Click View > Update Frequency > Often (2 sec)
Collect 5-10 mins of data during the ongoing performance issue.
Return to Activity Monitor, and double click the process with the performance issue. Click Sample.
Once the Sample completes choose "Save" to export the results.
In Terminal, capture the Agent Logs and return logging to defaults:
./b9cli --capture ~/Desktop/`Hostname`-PerformanceLogs.zip
./b9cli --password 'GlobalCLIPassword'
./b9cli --debuglevel 0
./b9cli --kerneltrace 2
./b9cli --nettrace 0
Collect System Logs
system_profiler -detailLevel full > ~/Desktop/sysinfo.txt
tar -cvf ~/Desktop/`hostname`-DiagnosticReports.tar /Library/Logs/DiagnosticReports
Upload all collected data.
Linux
Open Terminal and issue the following commands:
cd /opt/bit9/bin
./b9cli --password GlobalCLIPassword
./b9cli --resetcounters
./b9cli --flushlogs
./b9cli --debuglevel 4
./b9cli --kerneltrace 4
./b9cli --nettrace 1
Collect 5-10 minutes of data during the ongoing performance issues.
Download the attached "cbp-linux-sys-info.sh" script.
Extract and execute the script.
Once completed, collect the resulting "/tmp/cbp-linux-sys-info.tgz" file.
Take a snapshot of the running b9daemon process using the gcore command (gcore is included with gdb which you may need to install).
gcore 'pidof b9daemon'
Capture and stop debug logging:
sudo ./b9cli --capture /var/tmp/$HOSTNAME-PerformanceLogs.zip
./b9cli --password GlobalCLIPassword
./b9cli --debuglevel 0
./b9cli --kerneltrace 2
./b9cli --nettrace 0
Collect the System Logs.
sudo tar cvfz /var/tmp/$HOSTNAME-SystemLogs.tgz /var/log
After collection has completed, stop the Agent
Reproduce issue again with the TOP command:
top -c -n 10 -d 5 >> /var/tmp/$HOSTNAME-top_output.txt
While the Agent is shutdown & unloaded, collect a FAPREDEP capture.
Upload all collected data.
Feedback
thumb_up
Yes
thumb_down
No