Debugging Tools for Windows |
There are many occasions when you must initiate ADPlus in crash mode from a local client computer to monitor a process that ends unexpectedly on one or more remote servers in a cluster of servers. Typically, on Microsoft Windows 2000, you can initiate ADPlus in crash mode remotely by using Terminal Services. However, because you cannot debug applications that are running in different window stations on Windows 2000, ADPlus disables crash-mode functionality when it detects that it is running in of a Terminal Services session.
Instead, you must first create a batch file that opens a Command Prompt window on the remote server that has been shared by using the Remote.exe utility. Then, schedule this batch file to run on the target server by using the AT command (which causes the command shell to run noninteractively, similar to a service). The remote command shell is then connected to a local workstation or client computer that uses the same Remote.exe utility that was used to start it.
To start a remote command shell on a server by using the AT command, you must follow the correct procedure on the remote server and the local client.
Ideally, you should install the debuggers on the local client computer. If you cannot install the debuggers on the local client computer, you should at least put a copy of the Remote.exe utility on the local client. The following procedure assumes that Debugging Tools for Windows package is installed in C:\Debuggers on the remote server and that this package (or at least Remote.exe) is installed in D:\Debuggers on the local client. Adjust this procedure to the actual installation on your computers.
To set up a remote command shell on the server, do the following:
In this command, "15:00" is 1 minute later than the current time. For example, if the current time is 14:59, type 15:00.
To connect to the remote command shell from the client, do the following:
In this command, RemoteServer is the name of the remote server.
After you run this command, your local command shell is connected to the remote command shell that is running on the server, and all commands that you type locally are run on the remote server. For example, the dir c:\ command lists the contents of the remote server's drive C.
Alternatively, you can use the Kill.exe utility to end any processes that are being debugged. This utility is located in the root directory of the Debugging Tools for Windows installation tree.