AnsweredAssumed Answered

Tips for Executing command in logmon probe

Question asked by recarter on Oct 17, 2017
Latest reply on Oct 18, 2017 by recarter

I have a basic .bat file to restart a service when a logfile match is found.  It appears to run based on the logmon probe log file, but it is not executing any of the commands.

 

Command

C:\Program Files (x86)\Nimsoft\probes\system\logmon\SVC_RESTART.bat

 

.bat file

@ECHO ON
echo "begin SVC_RESTART script" >> scr.log
net stop "ServiceName"
net start "ServiceName"
TIMEOUT /T 5
echo "exiting SVC_RESTART script" >> scr.log

Outcomes