Using SSH to terminate remote systems for disaster recovery

From: Yard, John (jyard_at_AIS.UCLA.EDU)
Date: 01/26/05

  • Next message: Matt Lawrence: "Re: Using SSH to terminate remote systems for disaster recovery"
    Date:         Tue, 25 Jan 2005 17:50:01 -0800
    To: aix-l@Princeton.EDU
    
    

    I have a need to terminate a number of AIX 5.1 systems
    from a single script. I can do this using ssh. However,
    if I issue the shutdown command from ssh , it will
    wait for the command to be executed; the shutdown
    command will kill the remote sshd, and my script
    will hang until the socket times out - a long time,
    more than 5 minutes.

    Since the purpose of this is to shut down a number of systems
    quickly in event of a disaster, this is a problem.

    Is there anyway to launch the shutdown command via ssh
    and terminate and go the the next script step. Running
    the command in the background does not help.

    John yard
    UCLA


  • Next message: Matt Lawrence: "Re: Using SSH to terminate remote systems for disaster recovery"

    Relevant Pages

    • Scripts using SSH and SSH_ASKPASS
      ... To test SSH scripts you better destroy the control TTY. ... The trick is to run YOUR script on YOUR local ... As for the password relaying command: this needs not be an X command. ... # we read one line from a temporary pipe. ...
      (comp.security.ssh)
    • Re: remote server backup script
      ... > Just type away at the command line. ... Make a backup of whatever you want ... > command line, in a script. ... >>the server ssh key on the clients machine). ...
      (comp.os.linux.misc)
    • Re: [PHP] SSH and php
      ... % % Is it possible to run a SSH command from php? ... it's possible to run any command from php. ... There are ways to do that -- I personally would create a kick script ...
      (php.general)
    • "kill" group of commands from within script
      ... I have a problem with a small shell script. ... and then tries to terminate them ... When I run this command using KornShell, ...
      (comp.unix.shell)
    • RE: Execute script on remote computer
      ... Execute script on remote computer ... you should just use the ssh command coupled with the name of the ...
      (comp.lang.python)

  • Quantcast