AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

Need help script to trigger shutdown and start up AIX 6.1 server

  • 1.  Need help script to trigger shutdown and start up AIX 6.1 server

    Posted Thu February 16, 2012 01:46 AM

    Originally posted by: danmarket


    Company I work for is currently implementing SAP systems and to use the IBM Power 720 server with the AIX 6.1 operating system.

    Because this is my first time using this application and server then I had a lot of confusion regarding the configuration and so forth.

    One of my challenge now is how can I trigger the UPS to the server can be shutdown safely and automatically when the main power off.
    My problem is compounded when I was told of the global support from UPS saying that my UPS shutdown to trigger the only support for linux and windows while the OS does not support AIX 6.1 OS, so the trigger can not be done directly. But one of their solutions is to install the UPS shutdown software to another server (with Linux OS or Windows OS) and then that server is running a command to the IBM servers and then IBM server will run a script to turn off any services, applications, databases / instances, and server.
    Does anyone ever have the same case as that I face now?

    I need a solution for:

    • Which operating system one is better to be a server that will send a command to the IBM server, windows os or linux os? and how that server can send commands to the IBM server to run the safely shutdown script?
    • Are there anyone who can help me give a script which can be to turn off all the AIX services, applications, databases / instances and then shutdown server safely?
    • Is there a script to start all AIX services, applications, databases / instances and server can be run automatically when the server is start?
    help me please....
    #AIX-Forum


  • 2.  Re: Need help script to trigger shutdown and start up AIX 6.1 server

    Posted Thu February 16, 2012 10:58 AM

    Originally posted by: mmveiga


    I don't think that the solution that is being proposed to you is solid for a production environment running SAP, couldn't the UPS send a SMNP message to a console and all this be dealt by an operator ?

    To answer your questions.

    1) Which operating system one is better to be a server that will send a command to the IBM server, windows os or linux os? and how that server can send commands to the IBM server to run the safely shutdown script?

    Which you you know better ? You can run remote commands on AIX using SSH with key based authentication.

    2) Are there anyone who can help me give a script which can be to turn off all the AIX services, applications, databases / instances and then shutdown server safely?

    Shutdown AIX can be accomplished by running the shutdown command, custom commands can be added to /etc/rc.shutdown, you SAP implementation partner is your best resource for application, database shutdown procedures.

    3) Is there a script to start all AIX services, applications, databases / instances and server can be run automatically when the server is start?

    Check information on inittab available on several AIX documents and manpage.

    Regards,
    Marcelo.
    #AIX-Forum


  • 3.  Re: Need help script to trigger shutdown and start up AIX 6.1 server

    Posted Fri February 17, 2012 09:34 PM

    Originally posted by: kimbug


    I hope by now you have discovered that SAP supplies a 'startsap' and 'stopsap' command. After issuing a 'stopsap' you should check to be sure your database actually stopped and force the stop if needed. Then you can issue a shutdown (AIX) command to bring the system down.
    #AIX-Forum