Changes between Version 15 and Version 16 of GENIExperimenter/Tutorials/ClickExample/Execute


Ignore:
Timestamp:
03/18/13 07:42:58 (11 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/ClickExample/Execute

    v15 v16  
    5151  }}}
    5252=== Test remote execution ===
    53 You can execute commands in a remote host using `ssh`. To do this just follow your ssh command with the command you want to execute in quotes.
     53You can execute commands in a remote host using `ssh`. There is an omni script, `remote-execute.py` that automates this.
    5454  i. In your local terminal type :
    5555  {{{
    56   ssh -A top "ls -a"
    57   }}}
    58   This will list all the files under the home directory on host `top`. The output should look like:
    59   {{{
    60 geni@geni-VirtualBox:~$ ssh -A top "ls -a"
    61 .
    62 ..
    63 .bash_logout
    64 .bash_profile
    65 .bashrc
    66 .forward
    67 .kshrc
    68 .ssh
    69 .zshrc
    70   }}}
     56  remote-execute.py -a pg-utah <slicename> -m "ls -a"
     57  }}}
     58  This will list all the files under the home directory of all hosts.
    7159
    7260If you get something similar you are all set for controlling your nodes from your computer.