on 05-28-2013 8:02 AM
Hello
for the following command, how to get the return code of it on windows?
what is the return code of function StopService?
sapcontrol -prot PIPE -host xxxx -nr <instance#> -function StopService
Best Regards,
Yong Luo
Hi Yong,
Maybe you can try the following command.
echo %errorlevel%
Best regards,
Shuai Liang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
I think this does not display the status return code.
Is there an option to know what is the return code of sapcontrol command execution.
Thanks & BR,
KBV
***********
Hi Guys,
Found the solution in below link:-
http://scn.sap.com/community/windows/blog/2014/06/12/scripting-sapmmc-operations#
BR,
KBV
Hi Yong,
You can logon to windows server with sidadm user and open the cmd
and excute the above command .
Best Regards,
Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Atul
can the following be used?
Exitcode:
0: Last Webmethod call successfull
1: Last Webmethod call failed, invalid parameter
2: StartWait, StopWait, WaitforStarted, WaitforStopped,
RestartServiceWait timed out
3: GetProcessList succeeded, all processes running correctly
4: GetProcessList succeeded, all processes stopped
Best Regards,
Yong Luo
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.