Writing Script to restart the Server???

Hi All,
Can you please let me know is there anyway to write a script to restart the server?
I need to restart the Essbase server everyweek.
Thanks,
Prathap

Can you please let me know how we will stop and start EAS, EIS and Shared Services by automating the process.
Can you please provide any document or any detailed description.
Thanks,
Prathap
Edited by: prathap_k on Oct 12, 2010 1:28 PM

Similar Messages

  • Site does not load after some minutes of creation or after restart the server

    Hello,
    I have been asked to create a test enviroment identical to the production enviroment. So, what I did was:
    Backed up the production web application's content database: Prod_WSS_ContentDB
    Created new test servers (domain controller, sql server and sharepoint 2013 server) in a new, completely isolated, network environment, without any connection with the production environment (specifically Azure)
    Created a new web application in test environment with a new content database.
    Dismounted the new content database with powershell: Dismount-spcontentdatabase Test_WSS_Content
    Copy the Prod_WSS_ContentDB database to the test sql server and restored it with Management Studio.
    Mount the Prod_WSS_ContentDB databe to the web application with powershell:
    Mount-spcontentdatabse Prod_WSS_ContentDB -WebApplication http://testsp/
    Then, when I type http://testsp in the browser it redirects me to http://testsp/SitePages/Home.aspx
    and the site loads exactly as the production environment.
    But, after some minutes, or if I restart the Sharepoint Server, when I navigate to
    http://sitesp I am redirected to http://testsp/SitePages/Home.aspx
    as expected, but the site does not load, the browser just show a complety blank page.
    The Central Administration site loads normally.
    Trying to fix it I found that if I dismount the content database Prod_WSS_ContentDB, then mount the test database Test_WSS_Content,
    then navigate to the site, dismount Test_WSS_Content and finally mount again Prod_WSS_ContentDB, the site loads normally, no blank page, but after some minutes or if I restart the same happens again.
    For the error event I receice in event viewer it seems that the problem is related to database. I have not found a solution for this error... How can I solve  this?
    The error is:
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Foundation
    Date:          6/27/2014 2:44:22 PM
    Event ID:      5586
    Task Category: Database
    Level:         Error
    Keywords:      
    User:          UCETEST\spaccount
    Computer:      TESTSP01.ucetest.edu.do
    Description:
    Unknown SQL Exception -2146893055 occurred. Additional error information from SQL Server is included below.
    A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The handle specified is invalid)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />
        <EventID>5586</EventID>
        <Version>15</Version>
        <Level>2</Level>
        <Task>3</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2014-06-27T14:44:22.743159500Z" />
        <EventRecordID>4742</EventRecordID>
        <Correlation />
        <Execution ProcessID="1688" ThreadID="1692" />
        <Channel>Application</Channel>
        <Computer>TESTSP01.ucetest.edu.do</Computer>
        <Security UserID="S-1-5-21-2552298216-324766354-3392103171-1108" />
      </System>
      <EventData>
        <Data Name="int0">-2146893055</Data>
        <Data Name="string1">A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The handle specified is invalid)</Data>
      </EventData>
    </Event>
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

    Hi,
    According to your post, my understanding is that Site does not load after some minutes of creation or after restart the server.
    Please make sure you create a test environment for existing production site correctly.
    Here are some great articles for your reference:
    Moving content between SharePoint environments
    Copy SharePoint production data to a test environment
    Build a SharePoint 2010 Test/Development Farm
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support
    Hello Linda Li,
    I follwed that steps to create my test enviroment... and I have recreated it some times using that same steps, but the problem persits. After some minutes or after I restart the SharePoint server the site does not load.
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

  • There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder.

    Post Author: dmface15
    CA Forum: Administration
    I am working in a new enviorment and i am trying to save a report to the Crystal Server via the CMC. I am uploading the report from the objects tab and attempting to save to a folder. The report has 1 static defined parameter and that's it. When i click submit to save the report i receive the following error message: "There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder." There is not a anothe report within the folder with that name. What could be causing this error message and equally important, what is the solution.

    hte message you received about duplicate user probably means something hadn't fully updated yet. Once it did then it worked...
    Regards,
    Tim

  • How to add swap in solaris 11 and still will take effect even you restart the server

    Hi,
    I would like to ask on how to add swap file in solaris 11 will still take effect even you restart the server.
    swap -l
    zfs create -V 2G swappool/swap2
    swap -a /dev/zvol/dsk/rpool/swap2
    Regards,
    Andrew

    Hi Andrew,
    After completing the steps above, you will need to add an entry for the new swap volume to the /etc/vfstab as described in this doc if you want the swap volume to be used when the system is rebooted:
    Adjusting the Sizes of Your ZFS Swap and Dump Devices - Managing ZFS File Systems in Oracle® Solaris 11.2
    Thanks, Cindy

  • Oracle Database not open automatically on restarting the server

    Hello,
    I am using Oracle8i Release 8.1.6.0.0 - Production. And OS windows 2000.
    I installed oracle 8i. On restarting the server the database is not up automatically.
    I check the following services. All are in automatice mode.
    ORACLETNSListerner
    ORacleserviceSID
    Oraclewebassistant.
    I tried the following option also.
    ORADIM -edit -sid -startmode auto.
    still not working.
    Anyone please suggest the solution for this.
    Thanks & Regards
    Krishna

    Do you have any Antivirus installed in that server, sometimes antivirus blocks oracle autostart. try with uninstalling antivirus if it is .
    Thanks

  • Deploying, ReDeploying JAR file to WebLogic EM without restarting the serve

    Hi
    Can any one help me how to re-deploy .jar file on weblogic EM with steps.
    Deploying, ReDeploying JAR file to WebLogic EM without restarting the server
    Appriciate if you provide information in steps with screenshot.
    Note: Not in weblogic 11g console.
    Thanks,
    Phani

    http://download.oracle.com/docs/cd/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA

  • Script for Checking the Server Status

    Hi All,
         I just need the script for monitoring the server status through the WLST.My scenario:I have 2 server in Running State.If any one of the server get failed or in not RUNNING state then i use the script for starting that server automatically.I tried some of the script but it is not working properly .If any one have the sample script please share with me.
    Regards,
    Ove.

    Hi Syed,
    Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
    So a script that compares the results of
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
    and
    ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
    will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
    However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
    For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
    And of course the error logs will usually tell you if replication is failing outright.
    I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out.

  • File shares not be re-created when restart the Server (Windows 2012 Std R2)

    Hi Team,
       We are facing below issue whenever restarting my server (windows 2012 R2 STD)
    1. File shares are invisible.
    2. Every time i need to restart server service to make file shares availability
    Please look in to the above issue and revert if any suggestion.
    Regards
    K Sreenivasan

    Hi,
    According to your description, my understanding is that you create a file share under File and Storage Services but the file is invisible. If you restart the server make the file share, then you can see the file share.
    Can you see the file share when you directly create in Windows Explorer? Please check if you have enabled ABE on the file share.
    Access-based Enumeration
    http://technet.microsoft.com/en-us/library/dd772681(v=ws.10).aspx
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Modify JSP file without restarting the server

    Hi guys,
    I need to do small change in the JSP in the production.
    How can I do it without restarting the server?
    I have deployed the application as an EAR file.
    I use WLP8.1 SP3
    IS there any way?
    Ananth

    You can try expanding (use jar util) that ear into temp dir, then make the change, use jar util again to create the ear. try redepolying it. Make sure change the jsp recheck and hit that page. see if it works. Incase if it works put the jsp recheck back to -1.
    Note: This is just an idea, I never done.
    Thanks
    Srini

  • Deployment without restarting the server

    If we change java files,why we need to restart the server,I am using JBoss-2.2.1_Tomcat-3.2.1.Can we deploy the java file without restarting the server?Thanks in Advance

    Yes we may
    All u need to do is change
    TOMCAT: %WEBSERVER_HOME%\conf\context.xml
    JBOSS: %WEBSERVER_HOME%\server\default\deploy\jbossweb-tomcat55.sar\context.xml
    file from
    TOMCAT:
    =======
    <!-- The contents of this file will be loaded for each web application -->
    <Context >
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
    </Context>To
    <!-- The contents of this file will be loaded for each web application -->
    <Context reloadable="true" >
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
    </Context>JBOSS :
    ======
    <!-- The contents of this file will be loaded for each web application -->
    <Context cookies="true" crossContext="true">
       <!-- Session persistence is disable by default. To enable for all web
       apps set the pathname to a non-empty value:
       <Manager pathname="SESSIONS.ser" />
       To enable session persistence for a single web app, add a
       WEB-INF/context.xml
       -->
       <Manager pathname="" />
       <!-- Install an InstanceListener to handle the establishment of the run-as
       role for servlet init/destroy events.
       -->
       <InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
    </Context>to
    <!-- The contents of this file will be loaded for each web application -->
    <Context reloadable="true"  cookies="true" crossContext="true">
      <!-- Session persistence is disable by default. To enable for all web
       apps set the pathname to a non-empty value:
       <Manager pathname="SESSIONS.ser" />
       To enable session persistence for a single web app, add a
       WEB-INF/context.xml
       -->
       <Manager pathname="" />
       <!-- Install an InstanceListener to handle the establishment of the run-as
       role for servlet init/destroy events.
       -->
       <InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
    </Context>

  • Database instance is not Up hen i restart the server...

    hi...
    Database instance is not Up hen i restart the server...
    evertime i connecting with this commands..
    c:\oracle\PROD\db\tech_st\10.2.0\BIN>set oracle_home=c:\oracle\PROD\db\tech_st\10.2.0
    c:\oracle\PROD\db\tech_st\10.2.0\BIN>set oracle_sid=PROD
    c:\oracle\PROD\db\tech_st\10.2.0\BIN>sqlplus /nolog
    sql>connect / as sysdba
    connected to idle instance
    sql>startup pfile=c:\oracle\PROD\db\tech_st\10.2.0\Database\initPROD.ora
    is there any solution when i restart the server.. For instance Up..
    My application Version is :12.1.1
    my database Version is :10.2.0.2
    Regards
    Jaffer Ali

    Try as
    set oracle_sid=PROD
    oradim -edit -sid PROD -startmode auto or
    go run=>regedit=>HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1\ then edit
    ORA_PROD_AUTOSTART set true.
    in additionally you have to configure spfile as:
    set oracle_sid=PROD
    sqlplus "/as sysdba"
    create spfile from pfile=c:\oracle\PROD\db\tech_st\10.2.0\Database\initPROD.ora
    Edited by: admin on May 19, 2010 3:19 AM

  • About the script of restart sap server

    Hi expert,now i want to restart the sap server using window's schedule to execute a script, not using sap's mmc.pls tell me how to do. thanks

    just create a batch file with the stopsap, startsap commands on it and schedule using windows scheduler.
    For more info about start and stop commands read,
    http://help.sap.com/saphelp_nw04s/helpdata/en/70/b38937809c8f71e10000009b38f842/content.htm
    Regards
    Juan

  • Task Scheduler doesn't work for restarting the server but event log says successful.

    Hi All,
         I have created a scheduler task to run every weekend to restart the Windows Server 2008 R2 Standard(64 Bit OS). The task everything has been successfully created. I check manually if it actually restarts but it doesn't but on the event
    logs of the Task Scheduler it says restarted successfully and returns status code 0. But it doesn't seem to work.
    Thanks in advance.

    Hi Prasad Venkatesan,
    Can you tell more detailed information about how do you set this scheduled task?
    To create a scheduler of restarting at specific time, please also try these steps:
    Press WinKey+R > type taskschd.msc and press Enter (it will launch Task Scheduler)
    Left click from the right pane on the Task Scheduler Library > open Action from the top menu > New Folder... > name it MyTasks
    > click OK
    Left click on the MyTasks > choose Action from menu > Create Basic Task... (it will open task wizard)
    You can enter the Name , for example "Restart", and press Next
    In Trigger section you can specify when you want to run your task, for example:
    Select Daily , and press Next
    Now you can specify the day, the hour and set to recur every day, after that press Next
    In Action section you can choose what you want to run, for example restart your system, to do this:
    choose Start a program , and press Next
    in the Program/script field type shutdown /r , and press Next
    please press Finish
    Then check if it can work.
    Best Regards,
    Anna

  • Writing a file to the server using an applet...?

    Hi,
    I've been searching the web now for almost a day trying to find some help in how to do this... The biggest problem is that I'm kind of a newbie (not a total beginner, but this is the first time I've ventured into applet creation)
    What I'm trying to do is writing a simple web-page updater... i.e. This is what it should be able to do:
    1) Read HTML page and parse it so that I can change the important parts (the info on the page, not the actual HTML code) - DONE
    2) Present the information and let the user change it as (s)he sees fit - DONE
    3) generate the new HTML and write it back as a file on the server (replacing the old one) -- PROBLEM -- :)
    I think (!?) that I should be able to do this using the HttpURLConnection() POST method in addition to a PHP script on the server moving the file around once it's been uploaded. I don't, however, have a clue as to what the code should look like to accomplish something like this...(as I've never used it before, and can't seem to find sample code that would be even close to what I'm trying to do)
    How can this be done? Also, is there a simpler way of doing this?
    Thanks for taking the time to read that :)
    -NRGizeR

    as I said, I will gladly take suggestions :)
    again, I'm new to all of this and I don't really know what things in java (or any of the script languages for that matter) can or cannot do...
    Even if there is a better way, I would still know if this is solvable tho (I just want to get my head straight after banging it against this wall for the past few days) :), but as I said, any suggestions would be appreciated...

  • SharePoint Foundation 2013 Prerequisite installer keeps installing and restarting the server

    Hi,
    I'm trying to install SharePoint foundation 2013 on Windows Server 2008 R2 Standard SP1.
    I already install SQL Server 2012 SP1 and TFS 2013 on the server.
    I don't have internet connection on the server so i install the next prerequisites manually:
    SQL Server 2008 R2 SP1 Native Client 
    Microsoft WCF Data Services 5.0 
    Microsoft Information Protection and Control Client (MSIPC) 
    Microsoft Sync Framework Runtime v1.0 SP1 (x64) 
    Windows Identity Extensions 
    Windows Identity Foundation (KB974405) 
    Windows Management Framework 3.0   
    Then I ran the prerequisitiesInstaller.exe from command line - 
    prerequisiteInstaller.exe /appfabric:[Full AppFabric Installer path] /KB2671763:[AppFabric update path]
    the prerequisiteInstaller start to run - after some steps it request for server restart, after the server upload the installer start again and after some steps it request for server restart.
    This loop is never ending.
    I tried to do some action to fix this issue:
     http://spreza.blogspot.co.il/2013/05/sharepoint-2013-prerequisite-keeps.html
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/bccdb9f1-dd91-4db1-bd19-6bfa658727f5/sharepoint-server-2010-setup-keep-asking-for-reboot?forum=sharepointadminprevious
    There is any reason or solution for this scenario?

    Have you checked the log to see at what point and what update is requiring the re-boot?  I suspect one of your manually installed pre-requisites may be an older version and when it restarts it starts the regular automated installer, which is causing
    the loop.  Check the log for more specific errors.  The installer creates the log in the following location %TEMP%\prerequisiteinstaller.<date>.<time>.log
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

Maybe you are looking for