IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

App Control: How to Collect Logs for Troubleshooting a Disconnected Agent (Linux)

App Control: How to Collect Logs for Troubleshooting a Disconnected Agent (Linux)

Environment

  • App Control Agent: All Supported Linux Versions
  • Linux Operating System: All Supported Versions

Objective

How to collect logs for troubleshooting a disconnected Linux Agent.

Resolution

  1. On the disconnected endpoint use Terminal to issue the following commands to verify the Agent is running and has a Server listed:
    cd /opt/bit9/bin
    ./b9cli --status
    
  2. If the Agent is fully running and otherwise healthy: authenticate with the Agent and issue the following commands:
    ./b9cli --password GlobalCLIPassword
    ./b9cli --disconnect
    ./b9cli --debuglevel 4
    ./b9cli --kerneltrace 4
    ./b9cli --nettrace 1
    ./b9cli --connect
    ./b9cli --healthcheck
    ./b9cli --status
    
  3. In the returned output, locate: Server Information > Server and note the address
    Example: appserver.domain.com:41002 means the Server Address is appserver.domain.com
  4. Attempt communication between the endpoint and the Server Address returned in theby running the following commands:
    ping <SERVERADDRESS>
    nslookup <SERVERADDRESS>
    telnet <SERVERADDRESS> <SERVERPORT>
    Note: If the Telnet utility is unavailable the timeout utility (part of the coreutils package) could be used instead:
    timeout 1 bash -c "</dev/tcp/ServerAddressHere/41002"
    echo $?
    
    An exit status of 0 indicates the Server Address is responding on the port specified (41002).
  5. Set the Debug Levels back to the defaults and collect the logs:
    ./b9cli --debuglevel 0
    ./b9cli --kerneltrace 2
    ./b9cli --nettrace 0
    sudo ./b9cli --capture /var/tmp/DisconnectedAgentLogs.zip
  6. Collect the System Logs::
    sudo tar cvfz /var/tmp/SystemLogs.tgz /var/log
  7. Upload the logs to the Vault for review.

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎05-10-2022
Views:
772
Contributors