Welcome to the ThinManager Knowledgebase.
Additional knowledgebase articles can be found at Rockwell Automation Tech Support.

If you would like to speak with one of our engineers, please Submit a Question or give us a call at the phone number here. In North America, To route your phone support request directly to a technical support engineer, call toll-free 1-888-382-1583 or 1-440-646-3434, select Option 3 (Technical Support), then select Option 5 (More Options). When prompted, enter the ThinManager Direct Dial Code 201.

Difference between revisions of "Watchdog"

From ThinManager Knowledge Base
Jump to: navigation, search
m (TermMon Active X Control Method)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Troubleshooting]]
 
[[Category:Troubleshooting]]
 
ThinManager has two different watchdogs that will monitor your applications and force the terminal to reset it's session if the application closes or hangs.<br><br>
 
ThinManager has two different watchdogs that will monitor your applications and force the terminal to reset it's session if the application closes or hangs.<br><br>
If the Application Locks up but stays alive, use the '''TermMon Active X Control Method'''<br>
+
If the Application Locks up but stays alive, use the '''[[TermMon_ActiveX_Control| TermMon ActiveX Control Method]]'''<br>
If the Application Exits but the session remains, use the '''Script Method'''
+
If the Application Exits but the session remains, use the '''[[Watchdog#Script Method| Script Method]]'''
==TermMon Active X Control Method==
+
==TermMon ActiveX Control Method==
 
The TermMon ActiveX has a watchdog function built into it. If you register the TermMon ActiveX and embed it into your program you can use the WatchdogTime function to kill all locked up session.<br>
 
The TermMon ActiveX has a watchdog function built into it. If you register the TermMon ActiveX and embed it into your program you can use the WatchdogTime function to kill all locked up session.<br>
 
You set the watchdog to a number, say 10, and reset it every time the watchdog hits a lower number, say 3.<br>
 
You set the watchdog to a number, say 10, and reset it every time the watchdog hits a lower number, say 3.<br>
 
As long as the application is functioning properly it will keep setting the watchdog. If it locks up it is unable to update the watchdog, the watchdog counts down to zero, and then will kill the session. Once the session is killed the thin client will automatically reconnect and start a new session with the application running.<br><br>
 
As long as the application is functioning properly it will keep setting the watchdog. If it locks up it is unable to update the watchdog, the watchdog counts down to zero, and then will kill the session. Once the session is killed the thin client will automatically reconnect and start a new session with the application running.<br><br>
For further information, see the [[TermMon_ActiveX_Control]] Page
+
For further information, see the [[TermMon_ActiveX_Control| TermMon ActiveX Page.]]
  
 
==Script Method==
 
==Script Method==
Line 15: Line 15:
 
===Usage===
 
===Usage===
 
*Create a .bat file that contains the following code:
 
*Create a .bat file that contains the following code:
 +
====Without Arguments====
 
<pre>
 
<pre>
 
start "" /wait "Path\to\Program\executable.exe"  
 
start "" /wait "Path\to\Program\executable.exe"  
 
shutdown /f /l
 
shutdown /f /l
 
</pre>
 
</pre>
 +
====With Arguments====
 +
<pre>
 +
start "" /wait "Path\to\Program\executable.exe" -a -b -c arguments
 +
shutdown /f /l
 +
</pre>
 +
 
*Setup ThinManager to launch the .bat file instead of the regular executable.
 
*Setup ThinManager to launch the .bat file instead of the regular executable.
 
*Restart thin client (if thin client is currently running)
 
*Restart thin client (if thin client is currently running)

Latest revision as of 14:29, 15 June 2016

ThinManager has two different watchdogs that will monitor your applications and force the terminal to reset it's session if the application closes or hangs.

If the Application Locks up but stays alive, use the TermMon ActiveX Control Method
If the Application Exits but the session remains, use the Script Method

TermMon ActiveX Control Method

The TermMon ActiveX has a watchdog function built into it. If you register the TermMon ActiveX and embed it into your program you can use the WatchdogTime function to kill all locked up session.
You set the watchdog to a number, say 10, and reset it every time the watchdog hits a lower number, say 3.
As long as the application is functioning properly it will keep setting the watchdog. If it locks up it is unable to update the watchdog, the watchdog counts down to zero, and then will kill the session. Once the session is killed the thin client will automatically reconnect and start a new session with the application running.

For further information, see the TermMon ActiveX Page.

Script Method

The Watchdog script will start a specific application, and upon the application's termination, it will force ThinManager to re-establish the connection. This script is primarily designed for applications that will randomly quit but have spawned other processes that are running in the background and preventing the session from restarting. A common example is that view.exe will spawn hd.exe and alarmgr.exe and have them running in the background. If view.exe dies, hd.exe and alarmgr.exe will still be running and Thin Manager cannot restart a terminal session that has running processes.

Usage

  • Create a .bat file that contains the following code:

Without Arguments

start "" /wait "Path\to\Program\executable.exe" 
shutdown /f /l

With Arguments

start "" /wait "Path\to\Program\executable.exe" -a -b -c arguments
shutdown /f /l
  • Setup ThinManager to launch the .bat file instead of the regular executable.
  • Restart thin client (if thin client is currently running)