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

Similar Messages

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

  • About the bat file to start and stop the weblogic server10.3

    I am using windows 2003 os.
    i installed the WLS 10.3 .
    can anyone help me how to write the bat file for starting and stoping the weblogic server instance.so that it willl run as background service.
    I am new to this .Please suggest me
    Any help is appreciated.
    Thanks
    Sailaja.

    Hi David,
    yes.i am talking about Admin server.
    when i am creating the new domain,i didn't encounter any prompt asking me to run the Admin server as windows services.why i am not getting this prompt?where exactly i will get this prompt while creating domain.
    i am using the weblogic 10.3
    how can i make the admin server as windows services.
    Thanks
    Sailaja.
    Edited by: sj0609 on Dec 2, 2008 4:02 PM

  • 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

  • Need help getting Tomcat 5.0.28 to start (and stop, eventually)

    Hi!
    I am such a newbie to the Terminal and writing scripts, so please forgive my naiveté. I have successfully installed Tomcat in my /usr/local directory, but I am having trouble creating files to start and stop Tomcat, per the instructions on the following page:
    http://developer.apple.com/internet/java/tomcat1.html
    I've followed the directions but continue to get the following error after I execute ~/bin/start_tomcat.
    -bash: start_tomcat: command not found
    My file contains the following code:
    #!/bin/sh /n
    export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28 /n
    export JAVA_HOME=/usr /n
    $CATALINA_HOME/bin/startup.sh /n
    If anyone can help me, I would really, really, really appreciate it!
    Thanks!
    PowerBook G4 12"   Mac OS X (10.4.5)  

    Why are there all those "/n" there? Either you or the place you copied from has the wrong slash. But still, it's wronger than that to have them at all: "\n" means a newline (i.e., press "return") not the actual "backslash en" characters. Sometimes people post code with those \n visible: by making it explicit where a line-break should be, one doesn't have as much trouble when a web browser reformats the text and puts line breaks where they don't belong.

  • How to append data in same log after start and stop signal express

    how can i append my data to the same log file after starting and stopping the signal express ? Is there some option to do this. After start/stop it always makes a new log file. How can append datat to the same log file. 
    Thanks in advance. 
    Munir

    Hello mbhatti,
    I founded a KB which seems do describe the way to solve your problem.
    Appending Data to the Same File when Logging in LabVIEW SignalExpress :
    http://digital.ni.com/public.nsf/allkb/C38AEE499D5CC8C6862572CF006875D2?OpenDocument
    I hiope this will help you
    Regards
    Florian Abry
    Application Engineer Group Leader
    NI Germany

  • Start and stop Cisco Secure ACS services using batch.

    Hello.
    I need to start and stop Windows service using a batch.
    What is the correct order?
    Thanks.
    Andrea

    Here is the batch file I use to stop and start services on ACS 4.x Windows and it works perfectly. @ECHO OFF net stop csmon >null 2>&1 net stop cslog >null 2>&1 net stop csdbsync >null 2>&1 net stop csauth >null 2>&1 net stop csadmin >null 2>&1 net stop cstacacs >null 2>&1 net stop csradius >null 2>&1 net start csauth >null 2>&1 net start csmon >null 2>&1 net start cslog >null 2>&1 net start csdbsync >null 2>&1 net start csadmin >null 2>&1 net start cstacacs >null 2>&1 net start csradius >null 2>&1 echo Complete restart finished exit 0

  • How to copy only part of a binary file after selecting a start and stop byte?

    I need to copy a selectable block of binary data from one file to a new file.  The binary file is made up of several data widths (8/16/32 signed and unsigned).  If I use a read binary function I will need to account for the data types within the file.  I was hoping to do a copy function with a start and stop byte control. Any pointers?  

    The attached Rube Goldberg Code copies two arrays of clusters to two arrays of indicators.
    Ben
    BTW: It does so by writtng the flattened data to a fixed length file and decoding same on the read.
    Message Edited by Ben on 03-24-2007 12:54 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    File Decode.JPG ‏137 KB
    FileDecode.vi ‏125 KB

  • Starting and Stopping FMLE from command line yields corrupt .flv files

    I am using FMLE to record and live stream TV content. In order to this I am remotely calling FMLEcmd in order to start and stop encoding processes. The problem that I am running in to is that the .flv files generated are corrupt. The odd thing is that if I use the exact same profile XML from the GUI, then the encoding process works just fine and results appear as intended.
    Here is the way my workflow works:
    I start the process by calling
    FMLEcmd /p C:\lighttpd\htdocs\xml\default.xml /l C:\lighttpd\htdocs\logs\log.txt
    then at the conclusion of the recording I call
    FMLEcmd /s "C:\lighttpd\htdocs\files\default.flv"
    When I attempt to open the files using FFmpeg I get a codec error saying that no codecs were detected. When I attempt to open the files in VLC I get a error saying that the media types are "Undf". When I attempt to open or modify the files with flvtool2 I get an end-of-file error. My guess is that my stop command is incorrect and somehow abruptly stopping the stream, but I don't know another way to stop the stream. Do I need to specify a specific stream duration in the XML and make sure to call the stop command *after* the duration has been reached? What would cause this codec corruption when the same profile works properly from the GUI?
    Here is the profile I am attempting to use.
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>Osprey-440 Video Device 1A</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>20.00</frame_rate>
            <size>
                <width>640</width>
                <height>480</height>
            </size>
            </video>
            <audio>
            <device>SigmaTel Audio</device>
            <crossbar_input>0</crossbar_input>
            <sample_rate>22050</sample_rate>
            <channels>1</channels>
            <input_volume>75</input_volume>
            </audio>
        </capture>
        <process>
            <video>
            <preserve_aspect></preserve_aspect>
            <deinterlace></deinterlace>
            </video>
        </process>
        <encode>
            <video>
            <format>VP6</format>
            <datarate>650;</datarate>
            <outputsize>640x480;</outputsize>
            <advanced>
                <keyframe_frequency>5 Seconds</keyframe_frequency>
                <quality>Best Quality - Lower Framerate</quality>
                <noise_reduction>None</noise_reduction>
                <datarate_window>Medium</datarate_window>
                <cpu_usage>Dedicated</cpu_usage>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
            <audio>
            <format>MP3</format>
            <datarate>48</datarate>
            </audio>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <file>
            <limitbysize>
                <enable>false</enable>
                <size>10</size>
            </limitbysize>
            <limitbyduration>
                <enable>false</enable>
                <hours>0</hours>
                <minutes>60</minutes>
            </limitbyduration>
            <path>C:\lighttpd\htdocs\files\default.flv</path>
            </file>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value></value>
            </entry>
            <entry>
            <key>copyright</key>
            <value></value>
            </entry>
            <entry>
            <key>description</key>
            <value></value>
            </entry>
            <entry>
            <key>keywords</key>
            <value></value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value></value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Documents and Settings\Administrator\My Documents\My Videos</directory>
        </log>
    </flashmedialiveencoder_profile>

    If issue of corrupt file after cmd line not in GUI mode. Are you using some automation to copy/paste output flv to someother location?
    AFAIK, after placing stop command, FMLE took some time to write proper EOF in FLV. wait ~10 sec for FMLE to complete file writing process and than play in FLV PLayer.
    I tried manually with steps you mentioned and it's working fine for me.I playerd file in Applian Flash PLayer. "http://www.applian.com/flvplayer/"

  • HT1349 cant change start and stop time on aac file using PC

    I am trying to create a ringtone for my iphone.   So i created a AAC file of the song i wanted as a ringtone.  And I am doin exactly what the videos say.  So when i click Get INfo on the AAC file, it says i am supposed to be able to change the start and stop type. but it doesnt allow me to do so. 

    Set the start/stop where you want. Then right-click on the song in your library and choose "Convert Selection to mp3." This creates a new shorter file, files it by artist/album, and adds it to your library. It will play correctly inside or outside of iTunes.
    After you've confirmed the new one plays OK, you can either keep or delete the longer original, as you wish.
    Note that the above assumes that the source file is unprotected, which is true in your case, since you are starting with an mp3.

  • Control where to start and stop an SWF file inserted into a Captivate 6 slide.

    I am working on a project in which I need to insert SWFs on to slides in Captivate 6 and I've reached a hick-up. Some of the SWFs only need to start play at a specific frame (which is not necessarily the beginning of the SWF) and stop play at a specific frame (which is not necessarily the end of the SWF).
    Is there a way, by use of "Execute Advanced Actions" or "JavaScript", to control the play of a SWF, inserted on a slide, so that it starts and stops at desired frames?

    I think it is almost there now. Thanks for putting me int he right direction. You may be able to offer observations on my coding:
    this.onLoad = function() {
        stop();
    this.onMouseMove=function()
        // Test current mouse position is within the dimensions of the image
        if(_root._xmouse >= 0 && _root._xmouse <= 130 &&
           _root._ymouse >= 0 && _root._ymouse <= 420)
            // It is safe to play the animation as the mouse is within the
            // stage area
            play();
        else
            // We must stop animating and revert back to the first frame
            gotoAndStop(1);
    this.onRollOut = function() {
        stop();
    http://www.trucklesoft.co.uk/silcox/lounge.html

  • How to create services start and stop automation script for diff servers

    Hi All,
    i want to create a bat file for automation purpose to start and stop services
    i have some services in 1st server aand some in 2nd server and some in 3rd servers.
    has you all know i have to follow sequences to start and stop services can any help me in creating .bat by linking 3 servers fo starting and stoping services.
    Thanks in advance
    Regards
    SM

    Hi,
    this is the list of start oder for services in 11.1.2.1 from the Installation and Configuration Guide
    1. Databases for repositories.
    2. Any corporate user directories that you plan to configure for use with Shared Services.
    3. Foundation Services Managed Server application server, which includes Shared Services,
    and EPM Workspace.
    4. Reporting and Analysis Framework — Agent Service (if required for your environment)
    5. Reporting and Analysis Framework Application Server (if required for your environment)
    6. Web server
    The remaining services and processes can be started in any order:
    1. Performance Management Architect Services
    2. Performance Management Architect application server
    3. Performance Management Architect Data Synchronizer application server
    4. Essbase Server
    5. Administration Services application server
    284 Starting and Stopping EPM System Products
    6. Integration Services Server
    7. Essbase Studio Server
    8. Provider Services application server
    9. Financial Reporting Services
    10. Financial Reporting application server
    11. Web Analysis application server
    12. Calculation Manager application server
    13. Planning application server and the Hyperion RMI Registry
    14. Financial Management service
    15. Financial Management Web application server
    16. Strategic Finance service
    17. Performance Scorecard application server
    18. Performance Scorecard Alerter application server
    19. Profitability and Cost Management application server
    to start services on different servers you can use the sc command in your batch file
    for eg
    sc \\10.121.201.21 start HypS9FrameworkAgent

  • Starting and Stopping Repository Mgr Service

    Hello All,
    I am running Forte 3.0.D.0 on Windows NT 4.0. At night, I run batch files to backup and clean the repository.
    With previous versions of Forte (before 2.H) my scripts simply did an rpstop, rpcopy, rpclean and finally a rpstart to start the repository again. This worked great.
    Now, however, I am running the Repository Manager as an NT service, so I can no longer run rpstop or rpstart (rpstart does not start the Repository Manager service).
    One solution I have found is to use Net Stop and Net Start to stop and start the Repository Manager service, so my script looks something like this:
    rpcopy...
    net stop "Forte Repository Manager 3.0.D.0"
    rpclean...
    net start "Forte Repository Manager 3.0.D.0"
    This seems to work fine most of the time, but occasionally the service won't stop or start (like when a workspace is open). My questions are:
    1) Are there any other command line processes that people know of to start and stop a service?
    2) What is Forte's recommended process for starting and stopping the Repository Manager service in a script?
    Thanks for your help
    John Bruning
    IBIS Consulting Inc.
    www.ibis-consulting.com

    Your object could actually bind to a port using serverSocket.accecpt() and when a connection comes in, it exists.

  • Start and stop a loop automatica​lly subtractin​g at each iteration

    Hi there,
    I know that there are some topics about it, but I could not find any solution, especially because I use the version 7.1 and cannot open new version files.
    My problem is as follows:
    I need to charge a tank from 6 to 10 in the morning, every day during 3 days. The process must start and stop automatically, which means, no bottoms to start or stop. The start and stop conditions come from the hour.
    I start with a big loop of 72 iterations, which corresponds to 72 hours.
    The tank must start at level 6 every time it starts.
    After the start, 1 unit must be subtracted in each iteration. Which means, that at 6 am the tank has level 10, at 7 am level 9 and so on. In the end, at 10 am the tank level is equal to 2.
    In the next day, the process must start again and the tank must start at level 6.
    Any suggestions? Thanks in advance.
    Solved!
    Go to Solution.

    While this may work it can be improved significantly. This really isn't a state machine. This is basically the same as your flat sequence with the exception of using a While loop with a Case statement to implement each frame.
    You should define what your actions are and create a typedefed ENUM naming them. State names of 1 through 24 are meaningless. Not to mention in your code many of the cases are duplicates of others. That would mean that all of those can be one state with logic to determine what action/state comes next. A properly defined state machine would not need the outside For loop. Without knowing your specific needs some examples of reason state names would be the following: Start, Stop, Exit, Error, Initialize, Get Tank Level, Fill Tank, Drain Tank, Idle, etc. Can you see how these are easier to understand than 1 through 24.
    There are lots of examples of state machines here. Try a search and take a look at some of them.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Hard drive starts and stops a few times

    I went to my parents for the Christmas holidays today and tried to use their older computer to put music on to my iPod. Since it's so old I couldn't use iTunes, so instead I used Ephpod. After it was done copying the files to the iPod I saved the changes and disconnected, but immediately afterwards instead of going straight to the menu, the hard drive started and stopped about 10-15 times with the Apple logo being displayed. Now I can't reach the menu, the hard drive will start and stop spinning until it gives up, and when I reconnect it to the computer it won't even recognize it as an external drive. Any ideas?
    eMac   Mac OS X (10.4.3)  

    I have the same issue and the iPod wont reset.

Maybe you are looking for