search cancel

APM - Hotfixes adding extra ^M characters in the properties files

book

Article ID: 201428

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

APM 10.7 Hotfixes #29 and #67 is adding extra ^M characters in the properties files and this is causing the properties to be ignored. Below an excerpt of the hotfix.log illustrating this issue:

2020-09-17 17:48:18,626 [main] INFO  com.ca.fix.apm.hotfix.Hotfix - Patching IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,627 [main] INFO  com.ca.fix.command.CreateDirs - creating directory structure /Introscope_10.7.0.000029/hotfix/10.7.0-HF29/config
2020-09-17 17:48:18,632 [main] INFO  com.ca.fix.command.CopyFile - Copying /Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties to /Introscope_10.7.0.000029/hotfix/10.7.0-HF29/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,648 [main] INFO  com.ca.fix.command.ReplaceInFile - replacing "# Copyright © 2018 CA\\. All Rights Reserved\\." with "# Hotfix 10.7.0-HF29\r\n# Cop
yright (c) 2018 CA. All Rights Reserved." in /Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,702 [main] INFO  com.ca.fix.command.ReplaceInFile - replacing "# URL that points to the root of the ACC REST API" with "# Command Center URL used for na
vigating to Command Center from the ATC UI main \r\n# navigation. Link will be hidden if URL value is empty. Default value is empty.\r\n# It's also URL that points to the r
oot of the ACC REST API" in /usd/as61486a/soft/Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,738 [main] INFO  com.ca.fix.command.ReplaceInFile - replacing "# Path to a Jetty 6.1.25 XML configuration file.  Either an absolute path, or a path rela
tive to the config directory." with "# Path to a Jetty XML configuration file.  Either an absolute path, or a path relative to the config directory.\r\n" in /Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,748 [main] INFO  com.ca.fix.command.InsertInFile - inserting ^M
log4j.additivity.Manager.JavaScriptCalculator=false^M
 in /usd/as61486a/soft/Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,750 [main] INFO  com.ca.fix.command.InsertInFile - inserting ^M
log4j.additivity.Manager.AppMap.Alert-Mapping=false^M
 in /usd/as61486a/soft/Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,753 [main] INFO  com.ca.fix.command.InsertInFile - inserting ^M
log4j.additivity.Manager.AppMap.UVB-Mapping=false^M
 in /usd/as61486a/soft/Introscope_10.7.0.000029/config/IntroscopeEnterpriseManager.properties
2020-09-17 17:48:18,758 [main] INFO  com.ca.fix.command.InsertInFile - inserting ^M

 

Environment

AIX/Linux
APM 10.7#HF29 and #HF67

Resolution

This issue can be workarounded by using for example does2unix command or by using the vi command with ":%s/\r$//g" to remove the ^M characters, eg:

Then save the file (eg from vi command, :wq!)