Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Script to Shutodwn SAP

Hi,

I am working on the Script to shut down and start up SAP application through Batch file on Windows. I am succesfully able to execute my script. But my problem is i have 2 Node. On Node A Central instance is running and on Node B Application server is running. So right now what i am doing i am running to file on Node a and Node b to stop and start. Is there any possibility that i can shut down the Node b from my Central instance it self through script. for example this is my script and i am changing the host name and other details and running from Node b also to shut down.

echo off
cd \batchfile
CALL D:\usr\sap\NSP\SYS\exe\uc\NTI386\stopsap name=DP1 nr=00 SAPDIAHOST=sapdev >>  c:\batchfile\shutlog.txt
cd \batchfile
CALL NET stop "SAPHostControl" >> c:\batchfile\stoplog.txt
CALL NET stop "SAPHostExec" >> c:\batchfile\stoplog.txt
CALL NET stop "SAPDP1_00" >> c:\batchfile\stoplog.txt

Thanks

Subhash

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question