---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Deploy the Agent Client Collector using a custom base image

# Deploy the Agent Client Collector using a custom base image {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Deploy the Agent Client Collector on a virtual machine during mass deployment using the machine's base image. Mass deployment uses silent installation, which hides installation status.

## Before you begin

Use Microsoft SCCM to manage the deployment and security of your devices, as described in the [Create a Windows service account with Log on as a Service](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0867669) KB article.

Role required: agent_client_collector_admin

## Procedure

1. Navigate to AllAgent Client CollectorAgent Downloads.
2. Download the installation file of the relevant OS.
3. Install the agent according to the relevant OS instructions.
4. Run the following command to stop the agent service:  
   * In a Windows environment: Run the command `sc stop AgentClientCollector`
   * In a Linux environment: Run the command `sudo systemctl stop acc`
   {#acc-virtual-deployment__ul_lkr_31h_j1c}
5. Ensure that the acc.yml file doesn't include an encrypted API key.  
   For example: `api-key: "<insert plain text API key here>"`
6. Delete the contents of the agent's cache directory, keeping the directory structure intact:  
   * In a Windows environment: C:\\ProgramData\\ServiceNow\\agent-client-collector\\cache
   * In a Linux environment: /var/cache/servicenow/agent-client-collector
   {#acc-virtual-deployment__ul_vqp_b4j_hnb}
7. When installing on a Windows machine, ensure that the installation was successful by doing one of the following:  
   * Enable logging in silent installation and verify that the log file ends with the string, Windows Installer installed the product.
   * Ensure that the AgentClientCollector service has the status Running.
   {#acc-virtual-deployment__ul_clx_pyz_l1c}
8. When installing on a Linux machine, access the machine where the agent is installed and modify the /usr/share/servicenow/agent-client-collector/serial_number.txt file in one of the following ways:  
   * Change its content with the host's serial number, by running the following command: `sudo -n dmidecode -s system-serial-number`
   * Assign sudo permissions to the ServiceNow user to enable running the following `osqueryi` command: `sudo -E env "PATH=$PATH" osqueryi --logger_min_status=3 --line "select hardware_serial from
     system_info"`

   {#acc-virtual-deployment__ul_u1c_5lf_wmb}  
   Note:  
   You must change the virtual machine's host name after deployment to a unique value, to avoid damaging the host's CI.
9. As a post-deployment step, restart the agent service.  
   * In a Windows environment: Run the command `sc start AgentClientCollector`
   * In a Linux environment: Run the command `sudo systemctl start acc`
   {#acc-virtual-deployment__ul_qyb_zf2_l1c}

*[\>]: and then


