Perform a single-line Agent Client Collector installation on Linux

task australia Updated Sep 10, 2026 3 min read acc-oneliner-install.md
Raw file servicenow.com

Use an efficient single-line command script to install Agent Client Collector on a machine that uses a Linux operating system. If a script is not connected to the instance or you want to use enhanced customization options, you might have to install Agent Client Collector manually.

Before you begin

  • Ensure that you have configured the Agent Client Collector web server.
  • Verify that your server's OS and version matches the list of supported OS versions as described in Agent Client Collector Installation.
  • Ensure that the unzip program is installed on your Linux machine.
  • Determine the resource limits for the agent to be configured in the /usr/lib/systemd/system/acc.service file after installation.
  • Ensure that you have the openssl and dgst (for RHEL/Centos/SUSE installation) packages available, to be used by the install script.
  • Ensure that you have the gpg package available for validation (for Ubuntu/Debian installation).
  • Enable golden image mode for cloning additional instances by setting the golden image marker located at /tmp/acc-goldenimage. The golden image marker takes no action during new Linux installations, as there is nothing which requires cleaning.
  • When performing single-line installation on more than one agent, download the agent package to your local machine. Place the package on your ftp server, using an Ansible script. For details on mass deployment of agents, see Deploy the Agent Client Collector using a custom base image.
  • To retrieve OS serial numbers and TCP connections along with associated running processes, sudo access for dmidecode and ss is required on Linux systems.

Role required: agent_client_collector_admin

Procedure

  1. Retrieve MID Server websocket URL parameters.

    1. Navigate to Agent Client Collector > Websocket Endpoint and select the relevant websocket endpoint.

    2. Copy the value of the Endpoint URL field to be used in the installation command.

  2. Copy and edit the following command line, substituting your own information for the command parameters.

    ACC_API_KEY=<api_key> ACC_MID=wss://<mid_ip>:<websocket_port>/ws/events bash -c "$(curl -L https://<instance URL>/api/sn_agent/agents/install_agent)"

Parameter

Value

ACC_API_KEY

The API key used to access the MID Server websocket.If no ACC_API_KEY value is specified, you will be asked to enter the API key value during execution of the script.

ACC_MID

The URL of the MID Server websocket.If you are specifying multiple MID Servers, enter a string separated by commas for each MID Server.

3. To add new check definitions to the allow list, disable the allow list by adding **ACC\_ALLOW\_LIST=0** to the single-line command string.
**Note:** This action compromises your system's security and is recommended only as a temporary measure until you finish updating the allow list. After completing the update, re-activate the allow list by removing **ACC\_ALLOW\_LIST=0** from the single-line command string.
  1. To bypass certificate validation for development purposes or when the validation process takes too long, add ACC_VALIDATE_SIG=0 to the single-line command string.

  2. Run the single-line command (specified in step 2, above) on the server where the Agent Client Collector is installed.

  3. Configure resource limits for the agent in the /usr/lib/systemd/system/acc.service file, according to your business needs.

    The default values in the file are:

    • CPUShares: 128
    • CPUQuota: 10%
    • MemoryLimit: 192M
    • BlockIOWeight: 10
    • LimitNICE: +15

Parent Topic:Agent Client Collector installation on a Linux OS system

Search documentation
Search document titles and file paths on the australia branch