Cisco Cisco IP Contact Center Release 4.6.1 Installation Guide

Page of 152
6-6
WebView Installation and Administration Guide for Cisco Enterprise & Hosted Editions, Release 7.0(0)
Chapter 6      Jaguar Administration and the Jaguar Watchdog
  The Jaguar Watchdog
Executing a Batch File after Jaguar Restarts
Jaguar Watchdog is configured to execute a batch file after Jaguar restarts.
Calling a batch file enables you to code the execution of any tasks you might want to run, such as 
emailing an administrator about the restart, and to manage the way EAServer is restarted. 
If you choose to execute some tasks before EAServer is restarted (such as a Windows userdump), you 
can disable the EAServer auto-restart and restart Jaguar from the batch file itself.
The batch file that is installed and configured by default 
(
C:\icm\web\webview\watchdog\jaghook.bat
) is shown below. This file serves as an example 
and has the Jaguar restart code commented out. 
REM echo Time: > restart.log
REM time /t >> restart.log
REM echo Date:  >> restart.log
REM date /t >> restart.log
REM echo ------------ >> restart.log
REM echo Calling Shutdown >> restart.log
REM call jagtool shutdown  >> restart.log
REM echo Sleeping .... >> restart.log
REM sleep 10 > nul
REM echo Waking up .... >> restart.log
REM net start Jaguar >> restart.log