Scripts to start stop SAP HANA

Hi Everyone,
I need to call the script to stop and start sap hana via API. Does any one knows about any API that can be used to do this. I am aware of CLI but I need some API like REST API or XS which will help to do the os level triggering.
Thanks,
Amogh Jadhav

Rodrigo,
esse espaço é de HANA em Portugues.
Por favor, refaça a pergunta em Português e/ou pergunte no espaço de HANA em inglês:
SAP HANA and In-Memory Computing
Vou bloquear essa thread agora.
Abs,
Henrique.

Similar Messages

  • Start/Stop SAP Hana on SAP Hana Studio - Authentication Method

    Hi dear SAP Hana Colleagues !
    For security reasons, the Security Team is disabling the password authentication of SAP OS Users (<sid>adm). The password will be setted up as "locked" in the /etc/passwd file, to block "intearactive logins".
    As we know and as discribed in the section 2.2 of "SAP Hana Administrator's Guide", to stop/start SAP Hana Systems by SAP Hana Studio, we need to provide the "user/password" data to execute these actions, and this will not be possible if the password has remaining as "locked" in the OS.
    Are there another way to authenticate the <sid>adm user from SAP Hana Studio to execute the stop/start of SAP Hana System ?
    I'll wait your answers.
    Best regards,
    Rodrigo A. Botelho

    Rodrigo,
    esse espaço é de HANA em Portugues.
    Por favor, refaça a pergunta em Português e/ou pergunte no espaço de HANA em inglês:
    SAP HANA and In-Memory Computing
    Vou bloquear essa thread agora.
    Abs,
    Henrique.

  • Batch / script file to start /stop sap server

    Hi,
       I would like to start/stop SAP server using batch file (in windows). I need this, whenever we have to shutdown the server and restart of the server, so that SAP will automatically shutdown and restart using batch files while server restart cases? If anyone knows, please let me know. Thanks,
    Regards,
    Sundar.

    target of the 700 sapstartsrv improvement was to deliver identical functionality on all SAP platforms. As the DCOM programing model is only available on Windows platforms sapstartsrv.exe was enhanced by the WEB-Service interface and is available now on Unix too.
    The DCOM SAPControl interface of sapstartsrv.exe is still existing, but only on Windows. Here you can use VB Script or any other programming language able to handle DCOM objects to write your own programs / scripts to interact with the SAPControl.
    sapcontrol.exe is a command line program available since 700 which enables you control over nearly all functions of the sapstart service.
    Even it has the same name as the DCOM interface it' something completly different.
    regards
      Peter
    PS: sapcontrol syntax
    usage: sapcontrol [
                       -prot GSOAP_HTTP| http using gsoap build in sockets (default)
                             NI_HTTP|    http using SAP NI sockets (prefer Unix domain sockets)
                             NI_HTTPS|   https using SAP NI sockets (prefer Unix domain sockets)
                             WINHTTP|    http using Windows winhttp
                             WINHTTPS|   https using Windows winhttp
                             PIPE        Windows named pipes
                       [-user <user> <password>] OS user and password for Webservice authentication
                       [-repeat <N> <D>]         Repeat Webmethod call <N> times (-1=forever) with <D> sec delay
                        -format list|            List output format (default)
                                script           Script output format
                       [-host <hostname>]        Host to connect to (default: localhost)
                       -nr <instance nr.>        SAP Instance number to connect to
                       -function <Webmethod> [parameter list]
    Webmethods: Start
                Stop [softtimeout sec]
                Shutdown
                RestartInstance [softtimeout sec]
                StopService
                StartService <SID>
                RestartService
                ParameterValue [<parameter>]
                GetStartProfile
                GetTraceFile
                GetAlertTree
                GetAlerts
                GetEnvironment
                GetVersionInfo
                GetQueueStatistic
                GetProcessList
                GetInstanceProperties
                ListDeveloperTraces
                ReadDeveloperTrace <filename> <filesize>
                ListLogFiles
                ReadLogFile <filename> [<filter> [<language> [<maxentries> [<cookie>]]]]
                AnalyseLogFiles [<severity 0-2>] [<maxentries>] [<starttime YYYY MM DD HH:MM:SS> <endtime YYYY MM DD HH:MM:S
    S>]
                OSExecute <command> <async> <timeout> <protocolfile>
                SendSignal <pid> <signal>
                GetSystemInstanceList
                StartSystem [ALL|SCS|DIALOG|ABAP|J2EE|LEVEL <level> [<waittimeout sec>]]
                StopSystem [ALL|SCS|DIALOG|ABAP|J2EE|LEVEL <level> [[<waittimeout sec>] [softtimeout sec]]]
                RestartSystem [ALL|SCS|DIALOG|ABAP|J2EE|LEVEL <level> [[<waittimeout sec>] [softtimeout sec]]]
                AccessCheck <function>
                ABAPReadSyslog
                ABAPReadRawSyslog
                ABAPGetWPTable
                J2EEControlProcess <processname> <function>
                J2EEGetProcessList
                J2EEGetThreadList
                J2EEGetSessionList
                J2EEGetCacheStatistic
                J2EEGetApplicationAliasList
                J2EEGetVMGCHistory
                J2EEGetVMHeapInfo
                StartWait <timeout sec> <delay sec>
                StopWait <timeout sec> <delay sec>
                WaitforStarted <timeout sec> <delay sec>
                WaitforStopped <timeout sec> <delay sec>
    Exitcode: 0: Last Webmethod call successfull
              1: Last Webmethod call failed, invalid parameter
              2: StartWait, StopWait, WaitforStarted, WaitforStopped timed out
              3: GetProcessList succeeded, all processes running correctly
              4: GetProcessList succeeded, all processes stopped
    Security: Trusted connects without user and password check are possible through
              Unix domain socket or Windows named pipes. Protected webmethods like
              Start or Stop require a trusted connection or OS user and password
              authentication.

  • Shell script to start, stop and restart a JAR

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
      public Client(String name){
      public void stopClient(){
      public static void main(String[] args){
         new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Scripts for starting/stopping managed servers

    All,
    Could someone provide me with some sample scripts for starting/stopping managed Weblogic servers?  I'm specifically looking for ways to start/stop them WITHOUT starting the AdminServer.  I'm running WLS 10.3.6 on Windows Server 2003, and I have NodeManager set to start automatically as a Windows service.
    I know how to set my managed servers up as Windows services so that they will start automatically at boot, but this requires the AdminServer to be running, which I do not want.  I just want a few scripts for starting/stopping the managed servers (and maybe some hints as to how to make them start automatically without starting the AdminServer).
    Thanks in advance,
    Tom

    Hello Puneet,
    Admin console is an web application deployed into AdminServer. Hence if you shutdown AdminServer then you wouldn't able to access Admin console.
    Managed Server would function in MSI mode, however you will not be able to make any configuration or administration activities like deployment , any configuration changes , etc.
    Hello PRISM,
    Can you confirm your requirement about why you don't want AdminServer to be running?
    As I said,  you will loose the administration capability if you don't have admin server running.
    Regards
    Rosario

  • Start/Stop SAP Listener by Scheduler

    Hello,
    is there any way to start and stop a SAP Listener of a SAP Business Connector 4.8 by a Scheduled Task?
    Thank you.
    Best regards,
    Rainer

    Rodrigo,
    esse espaço é de HANA em Portugues.
    Por favor, refaça a pergunta em Português e/ou pergunte no espaço de HANA em inglês:
    SAP HANA and In-Memory Computing
    Vou bloquear essa thread agora.
    Abs,
    Henrique.

  • How to start & stop SAP J2EE services.

    Hello,
    Can anyone tell me the steps how to Start and Stop SAP J2EE operations and how to troubleshoot the problems when the Java doesn't come-up.
    Regards,
    Murali

    Hi,
    In windows,
    go to SAP management console,Right click on the SID and then <b>start all tasks</b>
    similarly to stop,Right click,
    <b>stop all tasks</b>
    If it is linux machine,
    switch to SIDadm user,by giving the command <b>su sidadm</b>
    ex:if SID is J2E,then it will be <b>j2eadm</b>.and then it is <b>startsap</b> or <b>stopsap</b>.
    For troubleshooting,
    1.go to /usr/sap/SID/JCxx/j2ee/cluster/server0/log
    look for <b>defaulttrace.trc file.</b>
    you can get to know the errors here and find teh root cause of it.
    2.you can also look for <b>devp_trace</b> in SAPmanagement console.
    3.Before doing all this,first check if <b>JAVA_HOME,path</b> and <b>LD_LIBRARY_PATH</b> is set properly and proper JDK is taken.
    4.check id <b>DB is up and running.</b>
    reward points if helpful
    Message was edited by:
            usha rani

  • Script to start/stop all manager sever/Admin server

    Hi Gurus,
    I am new bee to weblogic and learning it on daily basic.
    I have a scenario and would like to see if this is possible.
    We have one server and have couple of applications are running like SOA,OSB, OSR etc. During any downtime, we have to shut down each Admin Server, Manage server one by one and take up. This take time and effort too.
    Do we have some options through which we can configure all start/stop script in one file and do this work with few clicks. server shout down should be clean and take care of node manager recycle also.
    Could you please advise me on this or pls point me towards some already documented solution. I goggled this but did not find.

    Thanks radoui for your response.
    I see this approach as the default one.. Could you please advice me whats the correct sequence of shutting down the servers including node manager and starting back.
    Like I have SOA installed.
    So First I have to take down SOA managed server followed by Admin server and then node manager ..? Let me know if this is not correct.
    I still have doubt on this approach as if, managed server failed to stop and means while script will take down admin server and so on..

  • Start/Stop SAP 4.7 at DOS Level - How?

    Would like to schedule some type of script in a dos batch file and need to know how to stop and start SAP instance 4.7 Enterprise at the Command Prompt.
    Using:
    - Windows 2000
    - SAP 4.7 Enterprise Kernel 640 (Latest)
    - SQL 2000
    Regards

    Would like to schedule some type of script in a dos batch file and need to know how to stop and start SAP instance 4.7 Enterprise at the Command Prompt.
    Using:
    - Windows 2000
    - SAP 4.7 Enterprise Kernel 640 (Latest)
    - SQL 2000
    Regards

  • Shell script for start stop and restart standard

    Hi,
    I'd like to know if there's a standard template for shellscript for a kind of stop|start|restart execution of a server or stub.
    If you have any link or some info that explain how to do that nicely it would be nice!
    Thank you

    There's plenty of live examples in /etc/rc.d

  • How to transliterate various indian language scripts into english in SAP HANA?

    Hi All,
    We're trying to perform matching of Indian names in two different tables. In this, the two tables may contain names in different languages. For example, the table1 may contain the names in English and the table2 may contain the names in Hindi, Tamil, Bengali etc.,
    Now we want to know the method for matching the names between the two tables irrespective of their language and script.
    So, we decided to transliterate any other language to english and match them. But, we're unable to find any method/AFL in HANA.
    Please help us with some methods to transliterate a text in english or any other method to compare two texts in different lanugages.
    Regards,
    Sabarish

    Do these tables have a field called SPRAS (language key) available?
    -Patrick

  • Unable to start sap hana. -Startup of Instance failed-

    I can not start the sap hana, if you know better how to respond, please advise.
    Error:
       The following is the error log at startup.
    Version:
       SAP HANA SPS3 Rev.22
    Background:
       The phenomenon began to occur after failing to recover from. However, it might not matter.
    / Usr/sap/HN1/home/startsap_HDB00.log "contents.
    Thursday, January 05 01:16:26 UTC Trace of system startup / check of SAP System HN1 on 2012
    Called command: / usr/sap/HN1/SYS/exe/hdb/startsap HDB00
    Starting SAP Instance HDB00
    Instance Service on host TECTKOSV043 started
    SAP-R/3-Startup Program Rel 802 V2.0 (2008/11/15)
    Starting at 2012/01/05 01:16:26
    Startup Profile: "/ usr/sap/HN1/SYS/profile/HN1_HDB00_tectkosv043.tecnos.jp"
    Setup Environment Variables
    (8972) SETENV PATH = / usr/sap/HN1/HDB00/exe: / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp: / usr/sap/HN1/HDB00: / usr/sap/HN1/HDB00 / exe: / usr/sap/HN1/HDB00/exe/Python/bin: / usr / local / bin: / bin: / usr / bin: / usr/bin/X11: / usr/X11R6/bin: / usr / games : / usr / lib / mit / bin: / usr / lib / mit / sbin: / opt / dell / srvadmin / bin: / usr / sap / tools / bin: / bin: / usr / bin: / usr / ucb: / sbin
    (8972) SETENV SAP_RETRIEVAL_PATH = / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp
    (8972) SETENV PYTHONPATH = / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp: / usr/sap/HN1/HDB00/exe: / usr/sap/HN1/SYS/global/hdb/custom/python_support: / usr/sap/HN1/HDB00/exe/python_support
    (8972) SETENV DIR_LIBRARY = / usr/sap/HN1/HDB00/exe
    (8972) SETENV LD_LIBRARY_PATH = / usr/sap/HN1/HDB00/exe: / usr/sap/HN1/HDB00/exe: / usr/sap/HN1/HDB00/exe: / usr/sap/HN1/HDB00/exe / Python / lib: / usr/sap/HN1/HDB00/exe/filter: / usr/sap/HN1/HDB00/exe/AFL
    (8972) SETENV SHLIB_PATH = / usr/sap/HN1/HDB00/exe:
    (8972) SETENV LIBPATH = / usr/sap/HN1/HDB00/exe:
    Execute Pre-Startup Commands
    (8973) Local: rm-f / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp/trace/py.sapHN1_HDB00
    (8974) Local: ln-s-f / usr/sap/HN1/HDB00/exe/Python/bin/python / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp/trace/py.sapHN1_HDB00
    (8975) Local: rm-f / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp/trace/HDB.sapHN1_HDB00
    (8976) Local: ln-s-f / usr/sap/HN1/HDB00/exe/hdbdaemon / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp/trace/HDB.sapHN1_HDB00
    Starting Programs
    05.01.2012 01:16:26
    ShmDetach
    OK
    (8979) Starting: local / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp/trace/HDB.sapHN1_HDB00-d-nw-f / usr/sap/HN1/HDB00/tectkosv043.tecnos.jp/daemon.ini pf = / usr/sap/HN1/SYS/profile/HN1_HDB00_tectkosv043.tecnos.jp
    (8972) Waiting for Child Processes to terminate.
    (8972) **** 2012/01/05 01:16:31 Child 8979 terminated with Status 0. ****
    (8979) **** 2012/01/05 01:16:31 No RestartProgram command for program 2 ****
    (8972) **** No more Child Processes to wait for.
    (8972) Parent Shutdown at 2012/01/05 01:16:31
    Execute Post-Shutdown Commands
    05.01.2012 01:16:31
    ShmDetach
    OK
    (8972) Exiting with Return-Code 3. (No more child processes)
    Startup of Instance failed

    This question is not related to the HANA developer center sandboxes - no user can stop/start these systems...
    If the issue happened after a failed restore, your database is probably corrupted and cannot be started. Try to restore another backup. You can also try to restore the same backup again, and choose to not replay the log (recover from data files only). You will probably loose some changes, but at least have a consistent state...
    --Juergen

  • Weblogic Solaris SMF start/stop script

    Does anyone have a Solaris SMF script to start/stop Weblogic they'd care to share? Thanks.
    I don't think it matters but I'm running Solaris 10, Weblogic 10.3 and X86.

    In /etc/rc3.d (all the files in this script are executed at the time of server boot) you can keep a script called S99weblogic and add below line that file,
    #!/bin/ksh
    su - wladmin -c "/etc/init.d/start_weblogic.sh start"
    and in /etc/init.d you can write script start_weblogic.sh, as below
    #!/bin/ksh
    case "$1" in
    'start')
    # for admin server
    if [ -f <init log path>/startadmin.log ]
    then
    print -n "\t\n\n deleting <init log path>/startadmin.log\n\n"
    /usr/xpg4/bin/rm -rf <init log path>/startadmin.log
    fi
    ### like above do for manged servers logs also ( if you have different script formats for admin and managed servers) and startadmin.log contains paths to all the admin server scripts)
    # boot logs when the instances are started which will contains error while the instances are started
    if [ -f init log path/boot.err.log ]
    then
    print -n "\t\n\n deleting init log path/boot.err.log\n\n"
    /usr/xpg4/bin/rm -rf init log path/boot.err.log
    #contians the list of domains in your physical or virtual server
    if [ -f init log path/domain_list.log ]
    then
    print -n "\t\n\n deleting init log path/domain_list.log\n\n"
    /usr/xpg4/bin/rm -rf init log path/domain_list.log
    #list all domain names in domain_list.log
    #use below command to find all the domians scripts home, for weblogic 8 in ur physical server
    # for weblogic 8
    ls -d <path to user projects untill scripts home>/* > inint log path/domain_list.log
    #if ur domain are scattered then append other domains also -for weblogic 9.x, 10.x.........
    ls -d <path to user projects untill scripts home>/*/bin >> initn log path/domain_list.log
    # get start up sctiprs
    for file in `/usr/bin/cat init log path/domain_list.log`
    do
    ls $file/startadm*.sh >> init log path/startadmin.log
    ls $file/startwl*.sh >> init log path/startmgd.log
    fi
    done
    #start startup scritps
    for file in `/usr/bin/cat init log path/startadmin.log`
    do
    cd `/usr/bin/dirname $file`
    nohup $file >> init log path/boot.err.log 2>&1 &
    #do the same for manged server sctips
    done

  • How SAP HANA is helpful in motorracing or F1?? Need Help.

    Hi everyone, I am a Graduating Student. Looking for a career in Motorsports. I got to know that SAP HANA is much helpful in motorracing. My question is how it is helpful and what is the present value and what will be the importance of HANA in Future.
    Thanks

    Hi Rahman,
    I came across a very nice blog about where to start with SAP HANA and insight of new technology.
    http://scn.sap.com/community/developer-center/hana/blog/2013/06/25/want-to-learn-sap-hanawhere-to-startcertification
    All the information is collected at one place.
    Might this help
    Regards
    srinivas

Maybe you are looking for

  • No file found installer

    I create with the installer a setup.exe. When I  let it run, I can choose the directory where I can save the application and the runtime.  When I continue I get a error message that file is not found. But there is no description what there is missing

  • Duplicate Elimination in ebMS

    Hello, One of our partners is requesting to activate DuplicateElimination when sending ebXML messages to them. However in Oracle 10g b2b, I can't find that parameter. Does anyone know if this parameter can be enabled ? Kind regards, Guido

  • Creating a Magnifying Glass graphic

    Hello Everyone, Anyone know how I could create a magnifying glass graphic using Adobe Photoshop? I did do a search but it mostly came up with instructions or info on how to create one that'll also actually have a "magnifying" or "glassy" look to it.

  • MDT 2012 - Pre-Deployment File Deletion

    Hi, I have a small problem with migrating XP to Win 7 using MDT. Basically, I have about 200 machines to migrate but the TS will not allow me to copy user data. The error I get is "A supported previous version of Windows was not found on this compute

  • Making Smoke Ae reducing velocity or speed of it?

    Hi All, I hope someone is around to answer this and not all of you are at the Show.... I am creating smoke (see pic) I want to slow the smoke velocity or speed down. It is generating much to fast and would like it slower or a bit 'whispy'er' for a la