How to: Restart all three ABECAS Insight services from a CMD file

September 1st, 2007

It is sometimes necessary to stop or start all three ABECAS Insight server components at the same time. The ABECAS Insight tray icon programs ask for confirmation before shutting down any services. However, you can quickly restart all three services using a CMD (Windows Command) file.

Login to your ABECAS Insight Server machine as an administrator. Open NOTEPAD and create a file on your C: drive called AIRESTART.CMD

note: You will have to use the Save As command and change the Save As Type drop-down list to All Files in order to ensure the proper file name.

Enter the following lines into AIRESTART.CMD:

net stop “abecas insight server 3.0″
net stop “abecas insight server 1.0″
net stop “abecas insight server 2.0″
PING 1.1.1.1 -n 1 -w 10000 >NUL
net start “abecas insight server 2.0″
net start “abecas insight server 1.0″
net start “abecas insight server 3.0″

note: The use of PING is a rather inelegant way make the system wait for 10 seconds before restarting ABServer 2.0.

Save your changes to the AIRESTART.CMD file and place a shortcut to the file on your server’s desktop. You can adapt the commands in this file to create a shortcut that only stops the services, or even use the built-in Windows scheduling facilities to automate the process.

You should never perform this function while there are active connections. This will unload the services without warning and drop all existing connections. ABECAS Insight clients, ABComm, EDI, XM, and Event Scheduler programs may behave unpredictably and will eventually lose connection to the SQL Server