Batch file to Start / stop Import server

Hi,
I would like to know any approach or example to make a batch file to start and stop Import/Syndication server in MDM.
Appreciate a small sample for better understanding to start with.
Thanks,
Reo

Hi Reo,
the proper way to handle the Import Server is not to start it and restart it with a batch. This was the way the Import Manager Batch worked -> to execute an import one time.
You can define an time interval in the ini file how often the import should be executed.
If you want to use the Import Server anyway:
Write a little batch file which executes a DOS service start tool like "ntscmgr.exe". With that you can start and stop a service. If you want this to happen at a certain time of the day, just schedule the batch file under your operating system.
I hope that helps.
Best regards
Nicolas

Similar Messages

  • 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.

  • Batch file to start and stop

    Hi All,
    Can we create a batch file to start and stop the services. I need to start all the services like shared, essbase, eas, planning, webanlysis and financial reporting, and at also need to stop them using windows batch file.(Using windows 2003 server....service pack 1). Any help would be appreciated.
    Thanks

    Hi,
    The simplest script would be something like this. Save it as a .bat file, set all your services to manual and then set up a scheduled task to run this script when the computer starts.
    Gee
    ::          Startup Script for Hyperion Services          ::
    date/t >> startup.log
    time/t >> startup.log
    echo "Starting Hyperion Services" >> startup.log
    net start "Hyperion S9 OpenLDAP" >> startup.log
    net start "Hyperion S9 Shared Services" >> startup.log
    :: Insert pause of 5 seconds to ensure HSS has finished starting
    ping localhost -n 6 >nul
    net start "Hyperion S9 BI+ Analytic Services 9.3.1 - Essbase" >> startup.log
    net start "Hyperion S9 Administration Services ATS5" >> startup.log
    net start "HyperionRMIRegistry" >> startup.log
    net start "Hyperion S9 Planning" >> startup.log
    net start "Hyperion S9 Provider Services ATS5" >> startup.log
    net start "Hyperion S9 Apache 2.0" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Core Services 1" >> startup.log
    :: Insert pause of 10 seconds to ensure Core has finished starting
    ping localhost -n 11 >nul
    net start "Hyperion S9 BI+ 9.3 Workspace" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Java RMI Registry" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Print Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Report Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Scheduler Server" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Financial Reporting Web application" >> startup.log
    net start "Hyperion S9 BI+ 9.3 Web Analysis" >> startup.log
    date/t >> startup.log
    time/t >> startup.log
    echo "Finished Starting Hyperion Services" >> startup.log
    echo "###################################################################" >> startup.log

  • Can not  start/stop fullfilment server after fresh install

    Can not start/stop fullfilment server after fresh install
    Product: e-business suite (11.5.9)
    Platform: Win XP 5.1 (SP2)
    We have performed a new installation of ebusiness suite in our windows platform.
    Installtion went with out any problem.
    But we can not start/stop the fullfilment server. While trying to start/stop the server we are getting follwing error message:
    c:\oracle11i\prodcomn\admin\scripts\PROD_03274019ih\jtffmctl.cmd start
    script returned:
    C:\oracle11i\prodcomn\admin\scripts\PROD_03274019ih>echo off
    You are running jtffmctl.cmd
    Mon 13/09/2004
    01:46 PM
    "Starting Fulfillment Server for "PROD" on port "9300" ...\n"
    "Error returned while running OUI"
    ERRORCODE = 1 ERRORCODE_END
    .end std out.
    Class not found: oracle.apps.jtf.fm.engine.processor.Processor
    Please let us know how to fix this issue.
    Regards, Kunal

    edit the jtffmctl.cmd and make sure that it point to the correct java path, alse try to use java 1.4.1

  • Batch file to start java application

    Hi All,
    I have created a batch file to start my application.
    startApp.bat
    javaw myclass
    But now the problem is the command prompt is not closing. I want the command prompt to close automatically. Any help??
    Thanks in Advance,
    Manjinder Singh

    I cannot use double click on JAR file as i have some other commands also inside batch file. Like classpath setting etc.
    I tried to use cmd /c myapp inside batch file, but still the command prompts stays there till i exit my application.
    Any further HELP??

  • Any JAVA Api to start/stop dhcp server?

    Hello,
    Does JAVA has any API to start/stop DHCP server.
    thanks,
    shimsha

    http://edocs.bea.com/wls/docs81/deployment/tools.html#998698
    That is the API you need to what the weblogic.Deployer tool does.
    Sam
    Amir wrote:
    Hi
    Does anyone knows if weblogic 8.1 provides set of apis to start and stop J2EE
    applications programmatically?
    I know weblogic deployer provides the means to start and stop the J2EE applications
    through scripts. What I want to know if the apis for the scripts are exposed to
    be used within java code.
    Thanks

  • Starting/stopping mobile server

    Hi
    This is a two part question dealing with the starting and stopping of mobile server...
    To start the mobile server via win cmd line, I use java -jar oc4j.jar. How should I stop the server in this scenario? I have been using cntr-C in the dos window, I'm hoping there's a better way, but I haven't found any mention of it in the docs.
    Secondly, when I install the windows service to start/stop mobile server, I am not able to login to the mobile server's administrative console - does anyone know the reason for this?
    Thanks,
    Tim

    In recent windows xp systems there is a command line tool named "kill" or something like that, to kill the process like unix systems (kill pid).
    Also, killing the java process with ctrl/alt/suppr or using tools like process explorer (sysinternals) can achieve this.
    For the second problem, also check if you have installed the repository in a back-end database (SYSTEM's password needed while installing mobile server). If you did not install the repository in back-end database this could also be the problem, I think.

  • Batch file to start and stop services

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    Hi Ken,
    You had pointed me in the right direction regarding the
    psstools in order to create a batch file that can remotely start
    and stop services.
    i used the psexec command and am able to successfully restart
    the services needed remotely... however when i pick the file in the
    coldfusion administrator (in the probes section) how to i point to
    the batch file to run? it seems like the probe is not running the
    script like i want... the file is located on the c:\ so i entered
    c:\test2.bat...
    Thanks,
    Matt
    Matt,
    You should review the online help in the cfadmin for probes
    and the links it points you to in the developer's guide. Basically
    you need to define a new probe in the cfadmin by clicking the
    "Define New Probe" button. One of the probe's attributes will be
    what action. Define the action as a program and point it at a batch
    file running psexec. You will probably need to run CFMX as a
    specific user and not as localsystem, which is the default.

  • How to Start/Stop from Server Manager

    Hello,
    I am trying to figure out how to start/stop/restart my coldfusion servers from server manager.  I have seen the instruction at this link:
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSfd7453be0f56bba4-2a6b48f122a6582c7f-7ff e.html
    However it mentions "place the jrunappstartup.war file under the directory <CF_Home>/runtime/servers/admin"
    I do not know where to get this file from.  Please help!
    I am running ColdFusion standalone.
    Any help is much appreciated,
    Thanks,
    David

    An update to eariler posting. Configure CF9 Enterprise multiserver.
    Likewise unable to find jrunappstartup.war file mentioned.
    If I follow the instructions and try configure the SM Start Stop Details the Start Stop Restart
    does not become an highlighted option.
    Here are a couple screen cuts for interested readers-
    Start Stop Details (are these correct Jrun items to fill in?):
    Unable to restart from SM:
    Regards, Carl.

  • How to start/stop report server?

    Dear memebers,
    when i restart my machine the report don't run. and give the following errro: frm-41213 unbale to connect to the report server.
    how to start/stop the report server?
    i have installed the DS 10g.
    Thanks
    Muhammad Nadeem
    [email protected]

    I try to find same solution from three month , i think first you intsall report server
    and check that if in server/conf folder rep_<hostname> file is there than your report is running with in process method in that you are not able to run report with report server , if you get solution than please give me the same

  • Unable to Start/Stop Directory server from console

    We have two Directory Server 5.2 installations with both running as masters with replication between them. One of them was installed with the admin server and the other without. On the one that was installed without the admin server we added it afterwards.
    We now find that on the one that had the admin server installed after the directory server that we cannot start/stop the directory server from the server console nor can we view or access backups or logs from the console. The system does however create the log and backup files and we can start/stop it from the command line.
    I read in a post somewhere that the admin server can be created with a different user from the directory server or with the same username but a different domain and wondered if that was the problem but have looked through the configuration files on both machines and haven't managed to spot a discrepancy.
    Does anyone have any ideas where and what to check?
    Thanks in advance.
    Peter

    Ah, I wouldn't have recognized this scenario if you didn't report the scrozzled user name. The "access denied" error happens for the simple reason that 'IAyjcJlYKL' is not a valid user in your domain. Fancy that. If you look in your config.xml for the "node-manager-username" element, you may find the value is encrypted, and probably is 'IAyjcJlYKL'.
    It might be best if you filed a support case for this. I can make some guesses about what you should do, but it's just a guess. In any case, if you try fixing something, make a backup of the file first.
    The two things you can try doing are (backup the files and shut down everything first):
    * Edit the nm_password.properties file, replacing the one "hashed" line with two lines, setting the "username" property and the "password" property, both in cleartext. When the nodemanager starts up, it will replace those two lines with the "hashed" value.
    * Edit the config.xml file, replacing the values in the "node-manager-username" and "node-manager-password-encrypted" elements with their cleartext versions.
    Then start up the nodemanager and server.
    I'm familiar with this because I saw this happen, and I'm trying to remember the strange thing we had to do. I worked this out with BEA support a while ago. If it helps, my case number was #796710.

  • Starting/Stopping Application Server Forms and Reports

    Hello,
    Are there any scripts (like dbstart and dbshut for Oracle DB) for starting and stopping "Application Server Forms and Reports". If not, any special suggestions?
    I must automatically start this application on Unix. I know that during starting some steps must be performedy by the root user (export DISPLAY env variable and issue the "xhost +" command) and later the oracle user must do some things( export ORACLE_HOME and DISPLAY and issue the "opmnctl startall" command). Does anybody have scripts like that?
    Regards,
    Tim

    If you're on 10.1.2, there is a script (requires an X Windows session). It's called runstartupconsole.sh, but you've got to update the install type to Portal in the ias.properties file if I remember right. It looks cool, but a shell script works better.
    Here is a shell script that does some of those things. You still need to run xhost+ after running a display if you're using something that requires a DISPLAY to start. Someone may have a better one, but this one works.
    We actually use one that starts all the different components individually except for Reports in rc scripts. That is the only thing we have that needs a Display set to start. So then xhost + is run & at the same time, the Unix sysadmin runs a script that start Reports from opmn.
    I hope this is useful.
    Cordially,
    Steve
    #!/bin/sh
    # =======================
    # Collect Global Variables
    # =======================
    # Collect server specific install location
    export ORACLE_BASE=/u01/app/oracle
    export MIDDLE_TIER_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/mt_maxportal_02
    export INFRASTRUCTURE_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/if_maxportal_02
    export SID=orcl
    # Collect current PATH and LD_LIBRARY_PATH for reuse
    export OLD_PATH=$PATH
    export OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
    # Unset variables that can cause problems starting or stopping
    unset CLASSPATH
    case "$1" in
    start)
    # =======================
    # Start Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Infrastructure Database Listener
    echo -n "Starting Infrastructure Database Listener: "
    $ORACLE_HOME/bin/lsnrctl start
    echo "OK"
    # Start Infrastructure Database
    echo -n "Starting Infrastructure Database: "
    $ORACLE_HOME/bin/dbstart
    echo "OK"
    # Start Infrastructure OPMN managed components
    echo -n "Starting Infrastructure OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # =======================
    # Start Middle Tier
    # =======================
    # Change environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Middle Tier OPMN managed components
    echo -n "Starting Middle Tier OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # Start Application Server Control
    echo -n "Starting Application Server Control: "
    $ORACLE_HOME/bin/emctl startifdown iasconsole
    echo "OK"
    stop)
    # =======================
    # Stop Middle Tier
    # =======================
    # Set environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Application Server Control
    echo -n "Stopping Application Server Control: "
    $ORACLE_HOME/bin/emctl stop iasconsole
    echo "OK"
    # Stop Middle Tier OPMN managed components
    echo -n "Stopping Middle Tier OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # =======================
    # Stop Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Infrastructure OPMN managed components
    echo -n "Stopping Infrastructure OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # Stop Infrastructure Database
    echo -n "Stopping Infrastructure Database: "
    $ORACLE_HOME/bin/dbshut
    echo "OK"
    # Stop Infrastructure Database Listener
    echo -n "Stopping Infrastrucutre Database Listener: "
    $ORACLE_HOME/bin/lsnrctl stop
    echo "OK"
    reload|restart)
         $0 stop
    $0 start
    echo "Usage: `basename $0` start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • How to avoid time wastage in starting & Stopping weblogic server during development ?

    It is very frustrating to stop the server and start the server for any small changes made in the application.
    Is developer supposed to restart the server for for any small changes made along with the testing?
    One restart(Stop and Start) activity takes more than 10-15 mins. in debug mode.
    1) I make some changes then I start server in debug mode
    2) I see some mistakes in my bean code
    3) I change my bean.java or Impl.java
    4) I make a futile effort to reload Jars and reload the page
    5) It never takes my changes
    6) Only changes in properties of jspx components will accept the changes at the page refresh
    6) I add new component or new binding to jspx page, This will not even pay heed to re-deployment, I need restart the server
    7) I work only 7 hrs a day (1 hr-lunch)! 7*60=420 mins.... lets say I make code changes 10 times a day 10*20(200) half day
       is gone in just restarting server/redeploying changes.
    8) So frustrating..... !!!
    Que:
    1) Is the developer is supposed to imagine all the errors beforehand and code so that he wont waste time in restarting?
    2) How nice it would be that you just recompile the changes and you get to see your changes just by refresh...
       that is why pl/sql development is so fast.
    3) Is there any way to do it like that? or Are there are any quick tricks or precautions to avoid restarting the server.
    4) Am I not following the correct development/deployment methods?
    It will be really great help for me if you experts guide me on the practise you follow for restarting/redeploying.
    Thanks
    Rahul

    Rahul, please tell us your jdev version!
    1) this always helps!  In the old days you only compiled once a day and if the compiler found an error you had to wait a whole day until you got the next chance.  Do feel privileged that you can compile multiple times. A restart is not nessecary in every case, but depending on the version you hit to restart more often.  You should try to find out why it takes so long and minimize this time!  Using 11.1.1.7.0 i start my server in less then a minute.
    2) answer depends on the jdev version, but you don't get the speed of pl/sql for wenn application development.
    3) one thing to do is to define the jdbc connections used in the server or then use jndi to access the resource. This way you don't lose a minute or connection stopping the server.  Next it's best to keep the server as clean as possible. Read the log when the server starts and stops you get plenty of info what takes how long.  Then start optimizing.
    4) no, your method is ok.
    Timo

  • Starting/Stopping Web Server

    I am using WebSrvr.Active in my vi to start the web server but when I stop the web server the browser continues to display the front panel. It seems that the setting WebSrvr.Active to false does not stop the server.
     Is there a way to check if the server has stopped? Is there a way to disconnect or stop the remote monitoring pragmatically?  

    According to this KB, the Websrvr.active should stop the server. It also metnoins that only the local machine can access this. I am curious though, does the computer you are accessing the web server with still show updating data even after you have called this property?  If so, if you try and refresh the page, does it still stay loaded?
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

  • DOS Window automaticly close after execute the batch file and start the App

    Hi, all. I have made a batch file. When I start the batch file, thet is getting open the DOS Window. But I want close the DOS Window after Start the Application, or make it hidden?
    It is possible?
    Thanks all:-)
    Nikolay

    Hi,my batch file is:
    java -cp File.jar Desktop
    I have tryaed with:
    javaw -cp File.jar Desktop , but it dosn�t close the DOS Window.
    Have I make anythink false?
    Thanks.
    Nikolay

Maybe you are looking for

  • Chart Top N shows "0" in legend instead of "Others"

    We have a report template that was created in Crystal Reports XI R2 that displays two charts in a Report Header.  The first chart is a Top N chart; the second is a Bottom N chart.  Both charts use the setting "Include Others with name "Others"". Our

  • HT201272 i have download 120 mb size (uno card game) on my laptop how can i get it on my iphone s4

    i have download 120 mb size (uno card game) on my laptop how can i get it on my iphone s4

  • Movies and songs for your apple Tv

    hey everyone, kinda new here, have my iMac and Apple Tv for ages now. (use it tons) anyway I read a few posts and I have noticed that everyone talks about movies/songs for iTunes, you know you can put any movie any song on the apple tv? you DON"T hav

  • F.13-clearing, new problem

    HI Gurus I have a situation that I need to clear a GL acct based on the reference field. The items in the documents have a diff of 480$ so I put 500 as my tolerance in config- Define Tolerance Groups for G/L Accounts. The documents I am trying to cle

  • Order Value - Credit Check

    Dear Experts Is there a way to avoid open order value to be calculated in the credit exposure during credit check.? we want to activate credit checks at the delivery level. and we want only the delivery value + invoice value+ payments to be incorpora