cancel
Showing results for 
Search instead for 
Did you mean: 

startsap can only start CI/PAS in NW7.4

Former Member
0 Kudos

Friends:

I recently have installed some distributed NW74 with some additional application servers on several hosts.

I remember in my previous project whenever a DI was added to that system, startsap/stopsap scripts were

able to retrieve the new DI's info from profile directory therefore were able to start/stop the new DI.

Now, I have to run startsap/stopsap on each host, i.e. running startsap/stopsap on CI cannot effect DIs.

I want to modify startsap/stopsap scripts  manually however I think the code is complicated.

And especially from the startsap.trc/stopsap.trc, the new DIs and their hosts/profiles are displayed.

All logs and traces are free of error.

I have done some research on SMP and SDN, but failed to find hint

Would you please share your experience here?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mike,

I am assuming you are on a Non Windows OS, as on Windows all the related CI & Apps would have come in MMC ans would have been managed there. Here as Yuksel mentioned you can use sapcontrol utility for doing the same. You can create a script with below details:

1. SSH to the remote host

2. Navigate to the kernel directory

3. Run the sapcontrol utility to stop the DI first

4. Run the sapcontrol utility to stop the CI & DB

5  Run the sapcontrol utility to start the CI & DB first

6. Run the sapcontrol utility to start the DI

Thanks,

Manas

Answers (2)

Answers (2)

yakcinar
Active Contributor
0 Kudos

Hello Mike,

Did you try sapcontrol command with below functios?

use sidadm user and run sapcontrol from command prompt.

It will give help.

Starting and Stopping SAP Systems Using SAPControl - SAP NetWeaver Library: Function-Oriented View -...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e24f7b-1ba1-2b10-c0a0-e514b8556...

sapcontrol -nr 0 -function GetSystemInstanceList

StartSystem [ALL|SCS|DIALOG|ABAP|J2EE|TREX|ENQREP|HDB|ALLNOHDB|LEVEL <level>

    [<waittimeout sec> [runlevel]]]

StopSystem [ALL|SCS|DIALOG|ABAP|J2EE|TREX|ENQREP|HDB|ALLNOHDB|LEVEL <level>

    [<waittimeout sec> [<softtimeout sec>]]]

RestartSystem [ALL|SCS|DIALOG|ABAP|J2EE|TREX|ENQREP|HDB|ALLNOHDB|LEVEL <leve

Regards,

Yuksel AKCINAR

isaias_freitas
Advisor
Advisor
0 Kudos

Hello,

As far as I know, startsap/stopsap scripts do not affect instances running on remote hosts.

If you have two or more instances running on the same server, then the scripts will start/stop both instances.

Regards,

Isaías