Install the Agent Client Collector on a Windows machine manually
Install the Agent Client Collector on a Windows machine manually when you want to test the agent on a single system.
Before you begin
- Ensure that you’ve configured the Agent Client Collector web server. For details, see Configure the websocket server on the MID Server.
- Verify your server's OS and version.
- When using Microsoft Internet Explorer, do the following to prepare the Agent Client Collector installation file:
- Navigate to Server Manager > Local Server.
- Turn off IE Enhanced Security Configuration.
- Download the installation file.
- Change the extension of the installation file from
.manto.msi
Ensure that .NET Framework 4.6.2 or later is installed on the target machine.
Note: If the .NET Framework is not running effectively, use the legacy VBSript installer by running the following command on the target machine:
msiexec /i <msi_file_path> /quiet /qn /norestart USE_VBS_CA=1 ACC_API_KEY=<key_value> ACC_MID=wss://<mid_ip>:<websocket_port>/ws/events ACC_ALLOW_LIST=FalseEnable golden image mode for cloning additional agents by setting the msi property GOLDEN_IMAGE=true.
Role required: agent_client_collector_admin
Procedure
Navigate to Agent Client Collector > Agent Downloads.
To perform installation using the wizard:
Download the .msi file that is accessible from the link on the UI.
The Installation Wizard opens.
Select Next until you reach the MID Web Server Connection Settings page.
MID Connection Settings page
3. Enter the relevant parameters in the dialog box fields:
|Field name|Description|
|----------|-----------|
|MID Web Server Name/IP|IP address of the MID Web server.|
|MID Web Server Port|Port number of the MID Web server. Use a number between 1024-49151.|
|MID Web Server API Key|API key to access the MID Web server.|
4. Select **Next**.
The **Create Local User Account** page appears.
Create Local User Account page
5. Select the relevant option in the dialog box.
| Option | Description |
|---|---|
| Use default user \(servicenow\) | Default user with which to run the Agent Client Collector on a Windows machine.Selecting this option creates a local user called servicenow as part of the installation. The servicenow user password is randomly generated and is not stored in the system. A security event is created on the host machine which, if repeated, requires opening a support case. For details, see KB1649116 article in the HI Knowledge Base. |
| Select existing user | When selecting this option, configure the following subfields:- User Name: User name to log in to the Windows environment. - Password: Password of the selected user. The user can be one of the following:
Due to Windows UAC restrictions, running the agent as a local SYSTEM account is necessary to perform an upgrade via msiexec. |
**Note:** Using a Local System account creates the local group **ServiceNow Users**, and adds the created user to the group. The ServiceNow Users group has access to Agent Client Collector directories and has the following privileges:
- **Performance Monitor**: Comes with the base system; enables viewing all performance counters in the system.
- **Log on as a service**: Enables starting network services and services that run continuously, even when no one is logged onto the console.
- **Debug programs**: Enables debugging processes and reading process details for users outside the ServiceNow user group.
6. Select **Create User**.
The system creates a Windows user with the specified credentials, and the Agent Client Collector Configuration page appears.
7. To enable the **Allow-List** containing the checks enabled to run after setup, select the **Enable executing command allow list** check box on the resulting page.
Allow list check box
8. Select **Next** to open the installation page.
When installation completes, click **Next** to complete and exit the wizard.
After a successful installation, the service starts automatically and generates the following:
- User: Default = servicenow \(an existing user can also be configured to manage the service\). The servicenow user belongs to the local user group **ServiceNow Users**.
- Service: AgentClientCollector
- File location:
- Default for installation = `C:\Program Files\ServiceNow\agent-client-collector`
- Default for service files = `C:\ProgramData\ServiceNow\agent-client-collector`, which holds the `cache`, `config`, and `log` folders.
To run Silent installation to disable installation reports, run the command line appearing in the Silent installation section of the procedure, as follows:
msiexec /i <msi_file_path> /quiet /qn /norestart ACC_API_KEY=<key_value> ACC_MID=wss://<mid_ip>:<websocket_port>/ws/events ACC_ALLOW_LIST=FalseTo enable the allow list of specified checks when running Silent installation, set the ACC_ALLOW_LIST parameter to True.
To configure multiple MID Servers with Silent installation, run the command line appearing in the Silent installation section of the procedure with comma-separated values, as follows:
msiexec /i <msi_file_path> /quiet /qn /norestart ACC_API_KEY=<key_value> ACC_MID="wss://<mid1_ip>:<websocket1_port>/ws/events,wss://<mid2_ip>:<websocket2_port>/ws/events"Insert the following parameter values in the command:
| Parameter | Value |
|---|---|
| ACC\_API\_KEY | The API key used to access the MID Server websocket. |
| ACC\_MID | The URL of the MID Server websocket. |
| DENY\_LOCAL\_LOGON | When set to True, prevents any user other than the default servicenow user from logging onto the service.Default value: False |
| HTTPS\_PROXY | A fully qualified URL to a proxy server.For example: `https://proxy.url.net` |
| PAC\_FILE | A readable filepath on the system.For example: `/path/to/servicenow/readable/file` |
| PASSWORD\_NEVER\_EXPIRES | When set to True, the password for the default servicenow user never expires.Default value: False |
| START\_SERVICE | When set to True, the Agent Client Collector service automatically starts after installation.Default value: True |
| LOCALUSERNAME | Account running the Agent Client Collector as a Windows service. Possible values:- SYSTEM - LOCALSERVICE - DOMAIN\\gMSA$ - string \(local username\) Default = `servicenow` When using the SYSTEM, LOCALSERVICE, or DOMAIN\\gMSA$ accounts, you do not have to configure a password. |
| LOCALPASSWORD | Password for the user specified in the LOCALUSERNAME parameter. |
The configured MID Server values are automatically added to the `acc.yml` file. The agent connects to the first available MID Server in the list.
To configure a secondary MID server, enter the following syntax in the `backend-url` section of the `acc.yml` file, per the `.yml` standard: `- "wss://<MID IP>:<Web socket port>/ws/events"` \(with the quotation marks\).
- Upgrade the Agent Client Collector manually on a Windows system
Perform a manual upgrade of your existing Agent Client Collector version on a system running a Windows OS. - Uninstall the Agent Client Collector manually from a Windows machine
Uninstall the Agent Client Collector from a Windows machine manually instead of using the single-line procedure. Use the manual procedure if the command script is unavailable due to the specific agent not being connected to the instance.
Parent Topic:Agent Client Collector installation on a Windows machine