Automatich Shutdown scripts in  AIX  if power goes off

Can anybody help me in writing a automatic shutdown script in AIX 4.3 if the power goes down
Regards
Elamaran

Not possible...because system should be up for executing the shutdown script.its only possible when ur perform proper shutdown/reboot of system.

Similar Messages

  • How to deal with user session when power goes off

    Hi
    All,
    One day I had 170 oracle session connected on oracle database server and and suddenly electricity went off. but server was still running. and after power back on ther same bunch of user try to connect it.So I don't know what happen to those 170 session. does anybody know how to deal with this? I did shutdown and restart of database but I am not sure that is correct way to deal with this kind of situation.
    Thanks,
    Vishal

    If the database server is still running, the sessions will remain there, but it depends on how they got connected to the server. If they got access through a middle tier which maintains the session and this MT is still running the sessions will still be visible from the database perspective, unless the MT handles the disconnection event.
    If the sessions are working on a Client-Server basis, then PMON will mark the sessions as abruptly broken and it will get rid of them. Sessions may eventually remain hanged, but it depends on the topology, so the way you proceed was a clean database restart.
    ~ Madrid
    http://hrivera99.blogspot.com

  • How to automatically pause podcast when mobile power goes off

    I use my itouch in my car to listen to podcasts etc. and power it from the cigarette lighter using and adapter and play it through the radio using the AUX input. Is there a way that I can make my itouch pause whatever it is playing when power from my car stops -- i.e. when I turn off the ignition or unplug from source.
    It seems to me that my old ipod did this, but I can't get the itouch to do it. The result is that I come back to the car and the podcast - or whatever - kept running and I have missed a lot of stuff. I try to remember to pause the unit when I stop, but I frequently forget and it's frustrating.
    I understand that there may have been a change to the hardware interface between to older units and the itouch.

    If you have ever used a laptop and had a general power failure, the laptop keeps on trucking - right?
    I think the same think is going on here. You are running on external power (your car) and you remove that external power - the iPod's battery takes over and continues to operate the device.
    I think your only option is to pause the podcast - but you can do this by simply disconnecting the audio cable or headphone.

  • IPod Got Washed-Reset-Power Goes Off When Not Plugged/Charging

    Hi -
    My husband accidentally washed my iPod. He connected to iTunes, downloaded the restore software, and I was able to reset my iPod settings. But now when I disconnect and unplug the iPod, the screen goes dark and won't turn back on. Then after plugging it back in, the Apple logo appears and it syncs normally/charges.
    Is there anything I can do to fix this situation?

    How many days did he let it dry before he connected it to the computer? Needed to be at least 4 - 5.
    If it was immediate it probably killed the battery. You'll need to get it replaced or replace it yourself.
    Here is one source, Google for more: http://www.ipodjuice.com

  • Power goes off and on

    The IPAD2 keeps powering on and off.  Seems to be stuck

    Mine does too and yes it is full battery

  • Shutdown script for awesome wm

    I`m writing a shutdown script for my awesome wm.
    it looks like this
    [c!/bin/bash
    ACTION=`zenity --width=90 --height=200 --list --radiolist --text="Select logout action" --title="Logout" --column "Choice" --column "Action" TRUE Shutdown FALSE Reboot FALSE LockScreen FALSE Suspend`
    if [ -n "${ACTION}" ];then
    case $ACTION in
    Shutdown)
    #zenity --question --text "Are you sure you want to halt?" &&
    dbus-send --system --print-reply \
    --dest=org.freedesktop.ConsoleKit \
    /org/freedesktop/ConsoleKit/Manager \
    org.freedesktop.ConsoleKit.Manager.Stop
    Reboot)
    #zenity --question --text "Are you sure you want to reboot?" && gksudo reboot
    dbus-send --system --print-reply \
    --dest=org.freedesktop.ConsoleKit \
    /org/freedesktop/ConsoleKit/Manager \
    org.freedesktop.ConsoleKit.Manager.Restart
    Suspend)
    #gksudo pm-suspend
    dbus-send --system --print-reply --dest=org.freedesktop.Hal \
    /org/freedesktop/Hal/devices/computer \
    org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
    LockScreen)
    slock
    esac
    fi
    and i makedd it executable with chmod +x. But it sims that she is not working.When i run it as root the script works.And when i run it like user onli suspend semams to working.

    You don't have to use the deprecated hal! Here are my scripts which I use(d). All you need is
    exec ck-launch-session awesome
    in your .xinitrc.
    shutdown
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
    reboot
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
    hibernate
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Hibernate
    and suspend
    #!/bin/bash
    dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend
    Last edited by Army (2010-12-25 20:42:09)

  • Using a shutdown script to save files to local sever

    Hello,
    I am writing a shutdown script which runs when the use shuts their computer down. The goal is to back up some user files to a local sever. I am wondering if the shutdown will be delayed until the file is uploaded to the server. The file is approx 1 - 2 gb
    in size which would take a few minutes to send over to the server.
    I have used gpedit.msc and linked the batch file I wish to run.
    However, I have a few questions regarding this. Does windows wait for the batch file to finish executing before shutting down? If not,
    is there a way to delay the shutdown long enough for the file to send?
    For dev purposes I have experimented using a log off script (faster than constantly shutting off/turning on), however windows does not seem to want to wait and logs off before the btach file is finished executing. In the test batch script, I used the pause
    command to test if it would wait for me to finish executing the file before it logged off, but it seems that it does not want to wait and just goes ahead and logs off before it is done.
    The only work around I can think of is using a batch file which saves the files then turn off the computer
    instead of a script being run at shutdown - this might be not a practical solution since I have to integrate this into several workstation computers. Also, some employees may forget to use the file to shut down. I am also not sure how keen my boss
    would be for me to change the entire way everyone shuts down their computer (by running my batch file instead of the usual start->shutdown). If this is the only way to go about it I will discuss with him what needs to be done however I much prefer there
    to be a script that automatically runs when they shut their computers off.
    To wrap it up:
    Using a shut down script, how do I delay the shutdown long enough for files to be saved to a local server? Will windows automatically wait for the batch script to finish executing before turning off?
    Kind regards,
    - Strider

    Hello Strider,
    It seems that you issue is related with windows client, I suggest that you could post it to:
    https://social.technet.microsoft.com/Forums/windows/en-US/home?category=w7itpro%2Cw8itpro%2Cwindowsvistaitpro%2Cwindowsxpitpro%2Cwindowsintune
    The current forum you post to is used to discuss general issues about developing applications for Windows.
    Thanks for your understanding.
    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.
    Click
    HERE to participate the survey.

  • Shutdown script dependencies

    Hello @all,
    i would like to create a shutdown script, which depends on a working network connections.
    So i've created a StartupItem script and placed it under /Library/StartupItems
    The script works as expected when i called it via:
    SystemStarter -D stop <NameOfMyScript>
    The StartupParameters.plist of my script looks like this:
    Requires = ("Disks","Network");
    The problem now is that during shutdown procedure the network interfaces are already down.
    Maybe this is done by launchd?
    Any ideas/hints?
    Thank you very much for your support.
    Cheers

    AFAIK, StartupItems are deprecated and such tasks should be migrated to Launchd.
    In addition the Requires parameter only affects startup ordering and delays the task startup until the prerequisites are in place. I don't think it has any effect on shutdown actions.
    That said, I don't know that launchd handles this any better - there is no dependency model in launchd - the script is supposed to handle that itself.
    launchd does have a NetworkState flag that will keep your process alive as long as there's a network connection but I don't believe this will inform you that the network is going to go down - you may be able to detect when it's gone, but that doesn't sound like it'll solve your issue, either.
    Therefore I think you need to consider what it is you're doing (or trying to do) and look for some other way of doing it. Typically the application/process would have to deal with a network issue so that's where I'd look.

  • When ever the power goes out or I restart my iMac the external hard drive that is used by Time Machine for backups is dismounted ?

    When ever the power goes out or I restart my iMac the external hard drive that is used for backups by Time Machine is dismounted and all backups are gone. I can reselect it and it will start working again, but I am worried if the iMac hard drive should fail will I be left without a backup ?

    fzgy wrote:
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    It's possible a heavy-duty 3rd-party disk repair app can fix it, but they're expensive (DiskWarrior is about $100), and there's no guarantee it can do it.
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.
    That will erase it.  See Time Machine - Frequently Asked Question #5.
    It sounds very much like the disk is beginning to fail, although it's possible there's a bad port, cable, connection or power supply (if it has its own).
    I'd suggest getting a new one, and using it for your Time Machine backups; once you have a good backup there, reformat the old one (and select Security Options to write zeros to the whole drive -- if that fails, you know the drive is toast).  Use it for secondary backups, per FAQ #27.   If it has failed, get a second new one for secondary backups. 

  • Installing 10.1.0.5 on AIX 64 Power 5 machine

    Hi,
    I need to install 10.1.0.5 on an AIX 64 Power 5 Machine running AIX 5.3 (64bit), i have the patch 10.1.0.5 but i need whatever the base install is ? 10.1.0.1 ? But i cant find it anywhere on any of oracles thousands of webpages. Can anyone help me please (any version i can get the installer to to upgrade to 10.1.0.5 off would be fine).

    944322 wrote:
    Hi,
    I need to install 10.1.0.5 on an AIX 64 Power 5 Machine running AIX 5.3 (64bit), i have the patch 10.1.0.5 but i need whatever the base install is ? 10.1.0.1 ? But i cant find it anywhere on any of oracles thousands of webpages. Can anyone help me please (any version i can get the installer to to upgrade to 10.1.0.5 off would be fine).
    V10 is only available by submitting Service Request to My Oracle Support.

  • Error in shutdown script for bea weblogic

    We have this error in the shutdown script of our bea weblogic:
    ./stopWebLogic.sh[33]: -Xms256m: not found.
    using the Oracle OCI database driver
    Shutdown initiated
    The shutdown sequence has been initiated.the script is as follows:
    echo "using the Oracle OCI database driver"
    export ORACLE_HOME=/opt/oracle/product/8.1.7
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export ORACLE_CLIENT_VERSION=817
    export ORACLE_API_VERSION=8
    PATH=$PATH:$ORACLE_HOME/bin
    SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
    _HOME/lib
    PATH=$JDK_HOME/bin:$PATH
    export PATH
    # Set application specific variables
    DOMAIN_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    #!/bin/sh
    # Weblogic start script for egovernment
    # Based on Colin Brick's initial version
    # Modified 02/04/03 - Colin Brick
    #       - included settings for Oblix from using SSO Assembly Test as example
    # Set General environment variables (Should normally not be changed)
    #Java settings
    JDK_HOME=/opt/bea/jdk131/
    export JDK_HOME
    JAVACMD=java
    JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
    ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""
    export JAVA_OPTIONS
    WEBLOGIC_PORT=51080
    #Bea settings
    BEA_HOME=/opt/bea
    export BEA_HOME
    WEBLOGIC_HOME=/opt/bea/wlserver6.1
    export WEBLOGIC_HOME
    BEA_SECURITY_POLICY=/opt/bea/wlserver6.1/lib/weblogic.policy
    export  BEA_SECURITY_POLICY
    #Oracle settings
    echo "using the Oracle OCI database driver"
    export ORACLE_HOME=/opt/oracle/product/8.1.7
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export ORACLE_CLIENT_VERSION=817
    export ORACLE_API_VERSION=8
    PATH=$PATH:$ORACLE_HOME/bin
    SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
    _HOME/lib
    PATH=$JDK_HOME/bin:$PATH
    export PATH
    # Set application specific variables
    DOMAIN_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    domain_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    #Set the shared library path
    if [ -n "$SHLIB_PATH" ]; then
            SHLIB_PATH=$SHLIB_PATH:$SHARED_LIBRARY_PATH
    else
            SHLIB_PATH=$SHARED_LIBRARY_PATH
    fi
    export SHLIB_PATH
    # Start weblogic
    # change to weblogic home
    cd $WEBLOGIC_HOME
    PATH=$WL_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH
    $JAVACMD -classpath $CLASSPATH -Dbea.home=$BEA_HOME -Dweblogic.Domain=$DOMAIN_NAME -Dweblogic.Name=MyServer weblogic.Admin -ur
    l t3://localhost:$WEBLOGIC_PORT -username system -password $WLS_PW SHUTDOWNIt has obviously something to do with the line
    JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
    ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""I googled for this Xms1024m, Xmx1024m and it turns out to be for memory management for the java virtual machine.
    I don't know why it sais it can't find "-Xms256m" since it's not in the script.
    Anyone with some experience in this field who can help me out?

    ./stopWebLogic.sh[33]: -Xms256m: not found.
    this can be produced by something like this:
    javaoptions="-Xms256m" // or other option too
    $javacmd $javaoptions
    Now if javacmd has not been set, then $javacmd will be evaluated to the empty string, and the program to look for is the first part in $javaoptions, -Xms256m in our case.

  • Oracle Database 11g Release 11.2.0.3.0  IBM AIX on POWER Systems (64-bi

    Hi All,
    Is Oracle Database 11g Release 2 (11.2.0.3.0) available for IBM AIX on POWER Systems (64-bit), Or do we need to upgrade 11.2.0.1 to 11.2.0.3.0.Please clarify

    Hi;
    Is Oracle Database 11g Release 2 (11.2.0.3.0) available for IBM AIX on POWER Systems (64-bit),Yes
    Or do we need to upgrade 11.2.0.1 to 11.2.0.3.0.Please clarifyYou dont need upgrade, download patchset from metalink and start your process.
    Also see:
    Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) [ID 169706.1]
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Computer does not turn on, power LED goes off when power button is pressed

    My Pavilion 17-e078nr has stopped working, it will not power on. When you push the power button, the power LED next to where the plug is goes off and takes several minutes before it comes back on. I've tried removing the battery and get the same results and with the batter in and AC disconnected the power button does nothing. I've also tried the hard reset with no luck. As far as I know, nothing has happened to the computer since last time it worked. My two theories are either the AC power is bad, or there is a problem internal to the laptop. The AC power is providing the 19.5V, I measured it using a multi meter, I'm just not sure if it's providing the required wattage, or if the connection to the laptop is secure, it feels a little loose, but at the same time the LED comes on, so I know it's getting a connection. Only thing I can think to try is go to a store that sells this type of computer and see if I can use one of their power supplies to power my computer, and/or plug my supply into one of their computers. Don't know how willing any store would be to allow me to do that though. Any one have any additional thoughts or advise?

    Hi! I have the exact same problem... the LED on adapter, is very, very dim when connected.
    At first I tried connecting my macbook to my roommate's adapter and had the same problem. then tried taking out the battery, and still had the same problem. I did the same thing with my roommate's macbook, but hers did actually turn on! it operated without the battery. Figured out it was problem with mine.
    I kept on trying combinations battery, computer and adapter. turns our that my battery (which I thought at first was the problem) charges perfectly on my roommates mac, but wont charge on mine. her adapter won't work either on my computer. What I've been doing is charging my battery on her computer, then placing it on my mac, and it works. only thing that won't work is the adapter.
    Went to a mac store, and they told me that the problem was a small cable o wire that went from the Magsafe point into the mac and that the LED was very dim because no energy was being drawn from that spot because of this little wire being broken. they gave me the name of this wire... very technical stuff so, completely forgot cause I didn't have anything near to write on.
    I'd like to know if anyone has gone through this same ordeal, and had this wire replaced without any problems. When it comes to opening up my mac, I'm a bit skeptical, since warranty is expired and wouldn't want for a solution to become a bigger problem.

  • GPO Startup/Shutdown scripts not running

    I am running server 2003 SBS with windows 8.1 Pro workstations.
    My workstations run 1 start-up script and 2 shutdown scripts. All are BAT files.
    They were all working fine last week before I ran the update for 8.1.1, now they do not run at the appropriate time on any of those systems. However, if I execute them manually they work as expected.
    I have checked to see if the BAT files are still located in the GPO and they are there. They are stored locally on each machine, I have even tried to delete and re-add them and then run GPUPDATE to no avail. 
    Any help here would be great, as they deal with local encrypted containers and are specific to each workstation.

    Hi Sebastian,
    Thanks for posting.
    Whether the GPO with start-up/shutdown scripts are linked to the OU containing computers?
    FYI -  Logon/Logoff scripts could only be applied to users, whereas Start-up/Shutdown scripts applies to computers.
    Also, checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b193e8a9-9b2a-4993-bd74-836c65c51dc3/gpo-with-a-startup-script-is-not-working
    Regards,
    Gopi
    www.jijitechnologies.com

  • Does FiOS stay on when the power goes out?

    I'm wanting to buy a UPS for my computer, but I'm not sure if the internet will still work if the power's out.
    The UPS would power the router & computer, and anything else with a plug inside my house needed for the internet. Verizon also gave us this big backup power box which i'm not sure where the power goes to.
    Solved!
    Go to Solution.

    sman591 wrote:
    I'm wanting to buy a UPS for my computer, but I'm not sure if the internet will still work if the power's out.
    The UPS would power the router & computer, and anything else with a plug inside my house needed for the internet. Verizon also gave us this big backup power box which i'm not sure where the power goes to.
    The VZ Battery Backup (BBU) supplys power to the ONT in the event of a power failure.  In order to keep phone service up as long as possible, the internet and video portions of the ONT are shut down after 5 minutes.  If you want to keep the internet up, plug the BBU into your UPS. 
    Be sure and size your UPS according to the load factors and desired run time. 
    APC has a nice calculator on their site.
    http://www.apc.com/tools/ups_selector/

Maybe you are looking for