Changes between Version 16 and Version 17 of GENIExperimenter/Tutorials/ClickExample/Execute
- Timestamp:
- 03/18/13 07:57:09 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/ClickExample/Execute
v16 v17 56 56 remote-execute.py -a pg-utah <slicename> -m "ls -a" 57 57 }}} 58 This will list all the files under the home directory of all hosts. 59 60 If you get something similar you are all set for controlling your nodes from your computer. 58 This will list all the files under the home directory of all hosts. To run it in only one host use the `--host` option 59 {{{ 60 remote-execute.py -a pg-utah <slicename> -m "ls -a" --host top 61 }}} 61 62 62 63 == 1b. Configure your routers == 63 We are going to use remote execution to configure our routers. 64 We are going to use remote execution to configure our routers. For this specific command we will use ssh directly. 64 65 i. On a local terminal run the following command four times, each time substituting the <router_nickname> with one of the top, bottom, left, right: 65 66 {{{ … … 117 118 i. On a local terminal run the following command four times, each time substituting the <router_nickname> with one of the top, bottom, left, right: 118 119 {{{ 119 ssh -A <router_nickname>"sh ./stopIP.sh"120 remote-execute.py -a pg-utah <slicename> -m "sh ./stopIP.sh" 120 121 }}} 121 122 … … 145 146 i. On a local terminal run the following command four times, each time substituting the <router_nickname> with one of the top, bottom, left, right: 146 147 {{{ 147 ssh -A <router_nickname>"sh ./startClick.sh"148 remote-execute.py -a pg-utah <slicename> -m "sh ./startClick.sh" 148 149 }}} 149 150 You'll get output like this. (Don't worry about the warning messages, Click is just reminding you that you have no IP addresses in your core network.) The output of the click router is redirected to `/tmp/click.out` on each host.