Installing Agent Client Collector starts on the instance and the MID Server, before the agent package reaches the host. Create a listener on the MID Server, copy its endpoint and API key, then install the package on each Linux, Windows or macOS machine. Cloud-connected estates can use a MID-less deployment, which needs a registration key instead.
Set up the MID Server listener and API key first
Open the MID Server record, choose Setup ACC Listener from the related links, and enter the MID web server port. The default is 8800, and you can change it. Each MID Server takes one websocket server, so settle the port before rollout. If the MID Server is not installed yet, see how to install a MID Server first. Undecided about fit? The comparison of Discovery, Service Mapping and Agent Client Collector explains where each one fits. The MID Server guides cover the server side.
Test the listener before any agent depends on it. From a terminal, send a request to the MID web server monitoring path with the API key in an authorization header. A valid JSON response, rather than an error message, confirms the listener works. An error points to the port, the key or the network path, and fixing it before installs is far cheaper than debugging a failed batch. If the fault sits in the server itself, the MID Server troubleshooting guide is the next place to check.
Each agent needs two values. Under Agent Client Collector, Deployment, MID Servers, open the server, select the ACC Websocket Endpoints tab, and copy the Endpoint URL. For the key, open Deployment, MID Web Server API Key, choose the key, select View API key in the related links, and copy the value. Installing and reconfiguring agents requires the agent_client_collector_admin role.
Install on Linux servers and endpoints
Download the .rpm or .deb package and its signature files from Agent Client Collector, Deployment, Agent Downloads. Signature checking is optional but worth doing once per package on a fleet, using openssl for RPM files and gpg for Debian files. A good result reads as verified or GOODSIG.
| Distribution family | Package manager command | Core fallback command |
|---|---|---|
| RHEL-based | yum or dnf localinstall | rpm -vi with the package file |
| SLES | zypper install | rpm -vi with the package file |
| Debian-based | apt-get install | dpkg -i with the package file |
Use the fallback if the package manager commands are not configured.
Two install-time choices need deciding first. The Linux install grants CAP_SETFCAP and CAP_SETPCAP to the agent executable, which lets store applications such as Agent Client Collector Log Analytics read the file system. If your security policy rejects that, prefix the install command with ACC_SKIP_CAPS=true. Second, if a host mounts /var with noexec, the agent cannot run plugins from /var/cache. Relocate the affected paths with the RPM relocate option. If you move /etc, update the allow-list path in acc.yml as well.
For .deb installs, copy the sample configuration and default allow list into place, since RPM packages already include them. The main acc.yml settings are below.
| Setting | Value | What it controls |
|---|---|---|
| backend-url | Endpoint URL from the MID Server | Where the agent sends data |
| api-key | Key from the MID Web Server API Key record | Authenticates the agent |
| allow-list | Path to check-allow-list.json | Limits which commands the agent may run |
| verify-plugin-signature | true | Checks plugin signatures before running them |
| agent_cpu_threshold | Sample file value 25 percent (the official default is 5 percent), 3 repeats, 60-second interval | Watches the agent’s own CPU use |
Some agent checks run through sudo, so the servicenow user needs narrow sudo rights. Test them with visudo under /etc/sudoers.d before full rollout.
Finally, add the resource limits to the acc.service file in the systemd directory, /usr/lib/systemd/system. The service runs as the servicenow user, and the limits include CPUQuota=10% and MemoryLimit=192M. Reload systemd, then enable and start acc.
Install on Windows
A manual Windows install suits a single test machine. The host needs .NET Framework 4.6.2 or later. Internet Explorer downloads must be renamed from .man to .msi, and IE Enhanced Security Configuration must be turned off under Server Manager, Local Server.
The wizard asks for the MID web server name or IP, its port (1024 to 49151) and its API key. The next page chooses the account that runs the agent.
| Account option | What to enter | Notes |
|---|---|---|
| Default servicenow user | Nothing | Created with a random password that is not stored |
| Existing local or domain user | User name and password | A local user adds resilience |
| Group managed service account | Account name, no password | Password left empty |
| Local Service or Local System | LOCALSERVICE or SYSTEM | SYSTEM is needed for upgrades through msiexec because of UAC restrictions |
For fleets, a silent install is more practical. Pass ACC_API_KEY and ACC_MID (the websocket endpoint) to msiexec with /quiet /qn /norestart. ACC_MID accepts comma-separated values for several MID Servers, and the agent connects to the first one available. To configure a secondary MID Server, add its websocket endpoint as another backend-url entry in acc.yml on Linux, or as another comma-separated ACC_MID value on Windows. Set GOLDEN_IMAGE to true for machines you plan to clone.
Install on macOS
Use the manual route when a Mac is not yet connected to the instance. Download the signed .pkg from Agent Downloads, check it with pkgutil –check-signature, and install it with the installer command.
Copy the sample configuration and allow list into the Library Application Support path for the agent. Set backend-url to the MID websocket endpoint and enter the api-key in double quotes. The agent encrypts the key on its first run. Restart the agent with launchctl, unloading then loading com.sn.acc.plist. To keep it stopped after the installer exits, set KeepAlive to false in that file.
Choose between MID Server and MID-less deployment
Both routes install the same agent; they differ in data path. For the role a MID Server plays in the first route, see MID Server explained.
| Question | MID Server deployment | MID-less deployment |
|---|---|---|
| Where data travels | Agent, MID Server, then instance | Agent to the instance through the cloud |
| Instance type | On-premises instances | ServiceNow cloud infrastructure; not supported on customer-hosted on-premises instances |
| Core settings | backend-url and api-key | Registration key, instance URL, gateway URL, with api-key commented out |
| Plugins | MID Server listener | ITOM Cloud Services Core (sn_itom_cloud_svc); visibility content adds sn_acc_vis_content |
Before moving to MID-less, check three things. The instance’s stats page should show snow_adc in its server header, confirming the ADCv2 load balancer. The adcv2 TLS check should report true for mTLS support. Then install the cloud services plugin, configure a registration key. A failed registration clears the key from acc.yml, so keep your own record of it.
For Linux MID-less agents, the package steps match the MID route. In acc.yml, backend-url points to the gateway, connect-without-mid is true, instance-url and registration-key are filled in, and api-key is commented out.
Upgrade agents after deployment
The framework upgrades agents from the instance, with no login to each host. Upgrade one agent from its record, select up to 50 from the list view, or run a rate-limited mass upgrade through the scheduled job or a background script.
Each attempt passes three stages: InstanceVerification, AgentVerification and Upgrade. Each stage writes a row to the Agent Upgrade Histories table, the first place to look when an upgrade fails.
An agent qualifies for auto-upgrade when its status is Up, its version is 2.7.0 or higher and below the target, it is not flagged as a duplicate, it has a valid MID Server or Pod reference, it has not reached the retry limit, and it runs a supported operating system.
| Property | Default | Purpose |
|---|---|---|
| sn_agent.auto_upgrade.enabled | Set to true | Turns upgrades on; required before any run |
| sn_agent.agent_upgrade_version | Blank uses the framework app version | Target version, for example 5.0.1 |
| sn_agent.auto_upgrade.max_upgrades_per_hour | 1000 | Agents upgraded per job run; lower it for a gentler rollout |
| sn_agent.auto_upgrade.max_upgrades_per_handler_per_hour | 50 | Agents upgraded through one MID Server per run |
| sn_agent.auto_upgrade.retry_limit | 3 | Failed attempts before an agent is skipped |
Selective upgrade does not support mTLS between agents and the MID Server. An agent that reaches the retry limit drops out of the high-volume run, but an administrator can still run a selective upgrade on it. Select Reset failed upgrade attempts on its record to release it. For a safe rollout, upgrade one agent from the UI first, then five to ten across different operating systems, and then enable the scheduled job for the rest of the fleet.
Check logs and confirm collection
Set the log level in acc.yml or as a command-line flag, then restart the service: a service restart on Linux, a stop and start of AgentClientCollector on Windows, or a launchctl reload on macOS.
Confirm collection, not just connection. The framework runs predefined checks and sends results through a MID Server. It stores events and metrics in the relevant database and provides CI performance data to the other Agent Client Collector applications.
Frequently asked questions
Which Windows account should run the agent?
The default servicenow user is the simplest choice. Choose SYSTEM when you need upgrades through msiexec, since UAC restrictions require it for that step.
Can the Linux capability grant be turned off?
Yes. Set ACC_SKIP_CAPS=true before the package command to opt out of the enhanced Linux capabilities.
What happens if the first MID Server is unavailable?
The agent connects to the first available MID Server in its list. Add a second server as another backend-url entry in acc.yml, or as another comma-separated value in ACC_MID on Windows.
How do I make a log level change take effect?
Set the level in acc.yml or on the command line, then restart the agent with the service command for its platform. The change does not apply until the restart.