Re: Using SSH to terminate remote systems for disaster recovery

From: Bill Verzal (BVerzal_at_KOMATSUNA.COM)
Date: 01/26/05

  • Next message: Matt Frye: "Moving SP nodes between frames"
    Date:         Wed, 26 Jan 2005 08:11:30 -0600
    To: aix-l@Princeton.EDU
    
    

    Use ssh to run a "at now" type of job.

    -------------------------------------
    There's no place like /home

    Bill Verzal
    Project Leader, Komatsu America

    (847) 970-3726 - direct
    (847) 970-4184 - fax

                 "Yard, John"
                 <jyard@AIS.UCLA.E
                 DU> To
                 Sent by: IBM AIX aix-l@Princeton.EDU
                 Discussion List cc
                 <aix-l@Princeton.
                 EDU> Subject
                                           Using SSH to terminate remote
                                           systems for disaster recovery
                 01/25/2005 07:50
                 PM

                 Please respond to
                      IBM AIX
                  Discussion List
                 <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 Frye: "Moving SP nodes between frames"

    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)
    • Using SSH to terminate remote systems for disaster recovery
      ... I have a need to terminate a number of AIX 5.1 systems ... from a single script. ... I can do this using ssh. ... if I issue the shutdown command from ssh, ...
      (AIX-L)
    • 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)