dr_validate script failing because the shell is incorrect

book

Article ID: 5346

calendar_today

Updated On:

Products

CA Infrastructure Management CA Infrastructure Management CA Performance Management - Usage and Administration CA Performance Management - Data Polling

Issue/Introduction

The dr_validate script used as part of the data repository install or upgrade, is failing with the following message: "You must run this script in the BASH shell.  Exiting...."  After switching to the bash shell and running the script again, it still fails with the same message

Cause

The install is being run as a sudo user and the shell environment is not being loaded

Environment

All CAPM versions

Resolution

If you are running the dr_validate script as a sudo user then the shell environment must be loaded before running the script.  The way to do that is simply to run sudo su - (or su -).  After doing this, the dr_validate will proceed without giving the error about not being in the bash shell