cancel
Showing results for 
Search instead for 
Did you mean: 

Creating stopsap script on windows environment

Former Member
0 Kudos

Im trying to create a script that can shutdown sap instances over network - using stopsap.exe.

STOPSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>

this works perfectly - locale on the sap server, but running this over network gives me this error log.

CreateNamedPipe for
<host> \pipe\SAP<sid>_nr Failed, Extended Error #53

CreateNamedPipe for
<host> \pipe\SAP<sid>_nr Failed, Extended Error #53

sapntwaitforhalt.exe=>sapparam(1c): No Profile used.

running sapsrvkill.exe <host>_<sid>_nr

running sapntwaitforhalt.exe name=<sid> nr=xx SAPDIAHOST=<host> 3600

I copied the three needed files to a directory on the server that executes this script.

stopsap.exe

sapsrvkill.exe

sapntwaitforhalt.exe

What am I missing here - besides a working script

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I fount a loophole...

I used the psexec tool to push the stopsap command to my servers...worked like a charm - scary though, that i can be done so easily..

thnx for the input though..I will look at the SAP note regarding active dir plugin

gregorw
Active Contributor
0 Kudos

Hello Teddy,

if some of the replys where usefull you can now start awarding points.

Regards

Gregor

Former Member
0 Kudos

Teddy,

We use psexec on our windows 2003 J2EE cluster as well.

Regards,

James

gregorw
Active Contributor
0 Kudos

Hello Teddy,

I think it will not work with a script. But you can try to get an Active Directory integration for your Application server. Then it is possible to manage them via one central SAP Management Console. Have a look at SAP Notes 386762 and 373963.

Regards

Gregor

Former Member
0 Kudos

Teddy,

What is your OS?

James

gregorw
Active Contributor
0 Kudos

Hello James,

Teddy is on Windows.

Regards

Gregor