AnsweredAssumed Answered

APM Watchdog restart

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



I am working on a procedure to restart the CA APM services using the 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
"${JAVA_HOME}/bin/java" -jar "${startDir}/WatchDog.jar" start ${JRE_ARGUMENT} -emuser admin -startcmd "$EMCmd"


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