Changes between Version 3 and Version 4 of GEC15Agenda/AdvancedGENITopoOmni/Instructions/ClickExampleExperiment


Ignore:
Timestamp:
10/19/12 02:10:13 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC15Agenda/AdvancedGENITopoOmni/Instructions/ClickExampleExperiment

    v3 v4  
    160160  ssh -S hostB
    161161  }}}
    162 
    163 == Configure your routers ==
    164 
    165 ''In each of your four router hosts,'' run the extractClickConfig script as shown below.
    166 
    167 {{{
    168 [mberman@top ~]$ /local/click-example/extractClickConfig.py
    169 }}}
    170 
    171 You'll get output something like this:
    172 {{{
     162==== Test remote execution ====
     163You 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.
     164  i. In your local terminal type :
     165  {{{
     166  ssh -A top "ls -a"
     167  }}}
     168  This will list all the files under the home directory on host `top`. The output should look like:
     169  {{{
     170geni@geni-VirtualBox:~$ ssh -A top "ls -a"
     171.
     172..
     173.bash_logout
     174.bash_profile
     175.bashrc
     176.forward
     177.kshrc
     178.ssh
     179.zshrc
     180  }}}
     181
     182If you get something similar you are all set for controlling your nodes from your computer.
     183
     184=== 3b. Configure your routers ===
     185We are going to use remote execution to configure our routers.
     186  i. In a local terminal run the following command four time, each time substituting the <router_nickname> with one of the top, bottom, left, right:
     187  {{{
     188  geni@geni-VirtualBox:~$ ssh -A <router_nickname> "/local/click-example/extractClickConfig.py "
     189  }}}
     190  You'll get output something like this:
     191  {{{
    173192Your host information:
    174193        hostA: hostA.StupidSliceName.emulab-net.emulab.net pc347.emulab.net
     
    180199Done.
    181200}}}
    182 
    183 (If you are prompted for a password, check to make sure that you provided the -A switch in your xterm command above.)
     201  (If you are prompted for a password, check to make sure that you provided the -A switch in your ssh command above.)
    184202
    185203The extractClickConfig script produces router configurations for your experiment. It also creates a diagram of your experiment. Copy it back to the '''click-example''' directory on your local host so you can view it. There's a copy on each of your router hosts. I've chosen pc336.emulab.net, which is the top router, but it doesn't matter. You'll need to find the host name in the script output above, and then run this command ''on your local machine''.