We try to upgrade our environment agents to the patch 10197 from 220.127.116.1140 and the agent upgrade has failed. Server upgrade went fine but when I tried to upgrade the agent, it failed with following error:Agent upgrade failure:
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
FATAL: Starting the old NAG up at /root/LisaAgent
FATAL: Could not start the old NAG up
The wrapper.log file says "ERROR | jvm 1 | 2019/10/17 21:43:50.319 | Failed to find the bak file. file:/root/LisaAgent-ranagupgrade-new/deployer_daemon.sh.bak"
The above error in the old script is due to a defect, which got addressed in the new script which can be downloaded from New Linux agent-upgrade-bundle-linux-x86-64-18.104.22.16897
Release : 6.6
Component : CA RELEASE AUTOMATION CORE
New agent script bundle. Please find instructions below on running the agent upgrade script. (script file: agent-upgrade-bundle-linux-x86-64-22.214.171.12497.zip/agent-upgrade-bundle-linux-x86-64-126.96.36.19928.zip)$ cd /tmp$ mkdir agent-upgrade$ cd agent-upgrade$ unzip /path/to/bundle/agent-upgrade-
bundle-linux-x86-64-6.6.0. 10197.zip or agent-upgrade-bundle-linux-x86-64-188.8.131.5228$ chmod +x busybox$ ./busybox ash ranagupgrade.sh /path/to/agent
After the upgrade is done, it’s safe to delete /tmp/agent-upgrade.
A backup of the old agent directory will be created at /path/to/agent-
ranagupgrade-old. It's leave to end user choice whether they want to delete or keep it for a while.
1: Windows agent can be upgraded via ASAP UI (Doesn't require this script)
2: Linux Agent will be upgraded via scripts been distributed with cumulative. The new script is attached below.
3: Solaris agent can still be upgraded via existing feature i.e. ASAP GUI, as there is no change to that. (Doesn't require this script)
Note: From 6.7 onward the agent upgrade will be part of the GUI, where the Windows, Solaris and Linux agent can be upgraded via UI. Please note in this complete flow the upgrade logic change is only made for Linux (excluding Solaris) agents, where currently the script need to be copied manually for upgrade from 6.7 it will be distributed automatically by system.