Using Dascli or b9cli to Issue Agent Commands
search cancel

Using Dascli or b9cli to Issue Agent Commands

book

Article ID: 286491

calendar_today

Updated On:

Products

Carbon Black App Control (formerly Cb Protection)

Issue/Introduction

How to use the dascli (Windows) or b9cli (Linux/macOS) commands.

Environment

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

Resolution

Windows:

  1. Log in to the endpoint and use a command prompt to change to the Agent's directory:
    cd "C:\Program Files (x86)\Bit9\Parity Agent"
  2. Some commands first require authentication, but all commands are started by calling dascli, examples include:
    • Authentication not required:
      dascli status
    • Authentication required:
      dascli password GlobalCLIPassword
      dascli tamperprotect 0
    • Disable the Authentication Timeout when the CLI Password is used by adding a 0 at the end of the command:
      dascli password GlobalCLIPassword 0

Linux:

  1. Log in to the endpoint and use a command prompt to change to the Agent's directory:
    cd /opt/bit9/bin
  2. Some commands first require authentication, but all commands are started by calling b9cli, examples include:
    • Authentication not required:
      ./b9cli --status
    • Authentication required:
      ./b9cli --password GlobalCLIPassword
      ./b9cli --tamperprotect 0
    • Disable the Authentication Timeout when the CLI Password is used:
      ./b9cli --password GlobalCLIPassword 0

macOS:

  1. Log in to the endpoint and use a command prompt to change to the Agent's directory:
    cd /Applications/Bit9/Tools/
  2. Some commands first require authentication, but all commands are started by calling b9cli, examples include:
    • Authentication not required:
      ./b9cli --status
    • Authentication required:
      ./b9cli --password GlobalCLIPassword
      ./b9cli --tamperprotect 0
    • Disable the Authentication Timeout when the CLI Password is used:
      ./b9cli --password GlobalCLIPassword 0

Additional Information

  • Agent Management will need to be configured while the Agent is connected, or before the Agent is installed.
    • If authentication via User/Group is configured, running the command prompt as that user would allow authenticated commands without first entering the Global Password.
  • Failure to authenticate with the Agent will limit the ability to use more advanced commands.
  • After multiple unsuccessful attempts at authentication the Agent will temporarily lockout with Access Denied. Password Access Locked.
  • The default authentication period when using the CLI Password is 300 seconds.