Upgrade your existing Agent Client Collector version on a system
running a Linux OS if the single-line command script is not connected to the instance or you
want to use enhanced customization options.
Before you begin
- The upgrade procedure is the same for both MID Server and MID-less deployments.
- Role required: agent_client_collector_admin
Procedure
- Optional:
Back up sensitive files by running the following command.
tar -Pcvzf /root/acc_backup.tar.gz /etc/servicenow/agent-client-collector \
/var/cache/servicenow/agent-client-collector/agent_now_id \
/usr/lib/systemd/system/acc.service
-
Download the .rpm/.deb agent package and signature files, as described in Install Agent Client Collector on a Linux system.
-
Upgrade the package.
-
Restore the systemd service file (if you customized the file), using either an
automation tool or by reloading systemd configuration.
tar -C / -Pxvzf /root/acc_backup.tar.gz usr/lib/systemd/system/acc.service
systemctl daemon-reload
-
Change the owner:group setting to the correct one by
running the following command.
chown -R servicenow:servicenow /{etc,var/cache,var/log,usr/share}/servicenow/agent-client-collector
-
Restart the service and verify that it connects to its backend-url.
systemctl restart acc
tail -f /var/log/servicenow/agent-client-collector/acc.log