Changes between Version 53 and Version 54 of GENIExperimenter/Tutorials/ClickExample/Execute


Ignore:
Timestamp:
07/16/14 15:06:14 (5 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

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

    v53 v54  
    3434==  1a. Login and remote execution ==
    3535Run the `readyToLogin` script to get information about logging in to nodes. The script has a lot of output so lets put that in a file so that we can easily search for the information we want.
    36 
     36{{{
     37#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    3738{{{
    3839readyToLogin <slicename> -o --useSliceAggregates
    3940}}}
     41}}}
    4042
    4143This will save all the information to different files. We want to use the ssh configuration file that the script produced:
    4244{{{
     45#!div style="background: #ffd; border: 3px ridge; width: 685px;"
     46{{{
    4347mv ./sshconfig.txt ~/.ssh/config
     48}}}
    4449}}}
    4550
     
    6469  i. Open two new terminals
    6570  i. In one terminal type
     71{{{
     72#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    6673  {{{
    6774ssh -A hostA
    6875  }}}
     76}}}
    6977  and in the other
     78{{{
     79#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    7080  {{{
    7181ssh -A hostB
    7282  }}}
     83}}}
    7384
    7485{{{
     
    90101
    91102  i. In your local terminal type :
     103{{{
     104#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    92105  {{{
    93106remote-execute --useSliceAggregates <slicename> -m "ls -a"
    94107  }}}
     108}}}
    95109  This will list all the files under the home directory of all hosts. To run it on only one host use the `--host` option
     110{{{
     111#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    96112  {{{
    97113remote-execute --useSliceAggregates <slicename> -m "ls -a" --host top
    98114  }}}
     115}}}
    99116
    100117
     
    102119We are going to use remote execution to configure our routers. For this specific command we will use ssh directly.
    103120  i. On a local terminal run the following command four times, each time substituting the `<router_name>` with one of `top`, `bottom`, `left`, `right`:
     121{{{
     122#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    104123  {{{
    105124ssh -A <router_name> "/local/click-example/extractClickConfig.py"
     
    117136}}}
    118137  (If you are prompted for a password, check to make sure that you provided the `-A` switch in your ssh command above.)
     138}}}
    119139
    120140  i. The `extractClickConfig` script produces router configurations for your experiment. It also creates a diagram of your experiment. Get a copy locally from one of the routers, by typing in a local terminal:
     141{{{
     142#!div style="background: #ffd; border: 3px ridge; width: 685px;"
    121143  {{{
    122144scp top:myslice.png ./
     145   }}}
    123146}}}
    124147  i. Open the diagram in your browser or your favorite image viewing program.