1. sapcontrol -nr 00 -function GetVersionInfo
2. sapcontrol -nr 00 -function GetProcessList
3. sapcontrol -nr 00 -function J2EEGetProcessList
4. sapcontrol -nr 00 -function GetSystemInstanceList
5. sapcontrol -nr 00 -function ParameterValue SAPLOCALHOST
6. sapcontrol -nr 00 -function ParameterValue SAPPROFILE
startsap / sapcontrol
此问题未回答。
Daniel basisHi Experts,
Is sapcontrol alternative of startsap/stopsap?
for which conditions sapcontrol -nr <> -function commands can be effectively used?
Is it possible to start database with sapcontrol command?
Thanks in advance
- 4712 浏览次数
-
Re: startsap / sapcontrol Willi Eimler 2014-8-12 下午2:54 (回复 Daniel basis)
Hi Daniel,
Is sapcontrol alternative of startsap/stopsap?
yes (but startsap and stopsap uses sapcontrol)
for which conditions sapcontrol -nr <> -function commands can be effectively used?
can be used for scripting
Is it possible to start database with sapcontrol command?
No, the db is started by startdb script.
Best regards
Willi Eimler
- Alert Moderator
- 喜爱 (1)
-
Re: startsap / sapcontrol Daniel basis 2014-8-12 下午2:59 (回复 Willi Eimler)
Hi Eimler,
Thanks for the reply.
Please give me the usage/troubleshooting examples for sapcontrol for ABAP & JAVA stack systems?
Can it be used in Java stack systems?
Thanks in advance
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Willi Eimler 2014-8-12 下午5:00 (回复 Daniel basis)
Hi Daniel,
you can use the statement:
sapcontrol -nr
-host -prot NI_HTTP -function Stop to stop a system.
And:
sapcontrol -nr-host to start a system.
A system is identified by a systemnumber and a hostname. The statements stops and starts systems regardless of their types.
Best regards
Willi Eimler
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Daniel basis 2014-8-12 下午7:05 (回复 Willi Eimler)
Hi,
The mentioned statements would suit for AS-Java system as well?
And these will not do anything with database..right..DB should be started/stopped separately?
Thanks in advance
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Willi Eimler 2014-8-13 下午1:03 (回复 Daniel basis)
Hi Daniel,
yes. Look at the following example:
AS ABAP with systemnumber 01 on host alpha
ASCS with systemnumber 00 on host alpha
Java with systemnumber 04 on host beta
SCS with systemnumber 03 on host beta
Statement to stop the systems:
sapcontrol -nr 01 -host alpha -prot NI_HTTP -function Stop
sapcontrol -nr 00 -host alpha -prot NI_HTTP -function Stop
sapcontrol -nr 04 -host beta -prot NI_HTTP -function Stop
sapcontrol -nr 03 -host beta -prot NI_HTTP -function Stop
You can control the status of the instance with
sapcontrol -nr
-host -prot NI_HTTP -function GetProcessList Best regards
Willi Eimler
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Divyanshu Srivastava 2014-8-12 下午3:07 (回复 Daniel basis)
Hi Daniel,
STARTSAP and STOPSAP are scripts which in turn call other kernel and host programs to startup and SAP environment .
Is sapcontrol alternative of startsap/stopsap?
Not really, sapcontrol more or less is an independent program/web-service interface which is called with additional options, which themselves are C codes.
Refer: for codes and list
Also, for starting database, at the backend, no sapcontrol is use.
Once you read the above document you know what function are all about.
One the script in VI or notepad and look for function call.
Regards,
Divyanshu
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Divyanshu Srivastava 2014-8-12 下午7:33 (回复 Daniel basis)
Hi Daniel,
Use can use startsap to start:
DB - startsap db hostname
ABAP - startsap r3 hostname
JAVA - startsap j2ee hostname
any instance - for eg J00 - startsap J00 hostname.
Why to use sapcontrol ?
Divyanshu
- Alert Moderator
- 喜爱 (1)
-
Re: startsap / sapcontrol Hemanth Kumar 2014-8-14 下午7:13 (回复 Divyanshu Srivastava)
SAPCONTROL is used by the internal SAP processes. for example if SUM is run, it will try to start/stop using SAPCONTROL. Although it can be used for general housekeeping, startsap/stopsap is all you usually need.
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Divyanshu Srivastava 2014-8-14 下午7:20 (回复 Hemanth Kumar)
Perfectly said, I was asking Daniel why he wants to switch to SAPCONTOL
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Roman N 2014-8-14 下午8:02 (回复 Hemanth Kumar)
Interesting remark. But according to official SAP documentation:
"sapcontrol: with sapcontrol (process name on Windows sapcontrol.exe) you can call the functions of the Web service interface from the command field. sapcontrol -hshows the syntax and the available options."
- Alert Moderator
- 喜爱 (0)
-
Re: startsap / sapcontrol Gabriella Kiss 2014-8-17 下午7:29 (回复 Roman N)
Hi,
Back to your original question: both of them take part in the start of sap system.
You can have a better overview about sapcontrol and startsap script here:
SAP Start Service - Architecture of the SAP NetWeaver Application Server - SAP Library
The sapcontrol webservice interface implements a wide variety of of other functions, e,g,
as here already mentioned GetProcessList but GetVersionInfo, ... GetEnvironment, GetStartProfile...
You can see here more detailed infos about sapcontrol web service functions:
Regards, Gabriella Kiss