AnsweredAssumed Answered

APM Watchdog restart

Question asked by Arnab Mukhopadhyay on Dec 29, 2017
Latest reply on Jan 3, 2018 by Arnab Mukhopadhyay

Hi,

 

I am working on a procedure to restart the CA APM services using the WatchDog.sh script. My MOM/EM is on RHEL7. I would like to schedule this as a cron job. When I run the WatchDog application using the start option it prompts me for credentials. I updated the watchdog application to use the -emuser command option, however that doesn't seem to work. I was checking to see if anyone has used the Watchdog script to schedule a start of the application. Any help will be greatly appreciated. Thanks!

 

case $1 in
"start")
"${JAVA_HOME}/bin/java" -jar "${startDir}/WatchDog.jar" start ${JRE_ARGUMENT} -emuser admin -startcmd "$EMCmd"

 

[root@######## bin]# ./WatchDog.sh start
bash: ./WatchDog.sh: /bin/sh^M: bad interpreter: No such file or directory

Outcomes