update_pc_da_database_references.sh fails to run
search cancel

update_pc_da_database_references.sh fails to run

book

Article ID: 391781

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

When running update_pc_da_database_references.sh it fails with the following messages

cp: cannot stat '/PerformanceCenter/DM/webapps/dm/WEB-INF/dm.properties': No such file or directory
cp: cannot stat '/PerformanceCenter/EM/webapps/EventManager/WEB-INF/em.properties': No such file or directory
cp: cannot stat '/PerformanceCenter/PC/webapps/pc/WEB-INF/cfg/portal.console.properties': No such file or directory
sed: can't read /PerformanceCenter/DM/webapps/dm/WEB-INF/dm.properties: No such file or directory
sed: can't read /PerformanceCenter/EM/webapps/EventManager/WEB-INF/em.properties: No such file or directory
sed: can't read /PerformanceCenter/EM/webapps/EventManager/WEB-INF/em.properties: No such file or directory
sed: can't read /PerformanceCenter/PC/webapps/pc/WEB-INF/cfg/portal.console.properties: No such file or directory
sed: can't read /PerformanceCenter/PC/webapps/pc/WEB-INF/cfg/portal.console.properties: No such file or directory

Cause

Within the update_pc_da_database_references.sh script, the line trying to parse the zerog file is referencing the incorrect name out of the box

Resolution

Within update_pc_da_database_references.sh, edit the line 

INSTALL_DIR=$(xmllint --shell <<<"xpath //registry/products/product[@name='Performance Center']/@location" /var/.com.zerog.registry.xml | grep content= | sed 's/^[^=]*=//')

and modify it to the below ( The DX NetOps Portal entry )

INSTALL_DIR=$(xmllint --shell <<<"xpath //registry/products/product[@name='DX NetOps Portal']/@location" /var/.com.zerog.registry.xml | grep content= | sed 's/^[^=]*=//')

Then rerun the update_pc_da_database_references.sh script.

 

Additional Information

This was resolved in 24.3.1