Changes between Version 53 and Version 54 of GENIExperimenter/Tutorials/ClickExample/Execute
- Timestamp:
- 07/16/14 15:06:14 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/ClickExample/Execute
v53 v54 34 34 == 1a. Login and remote execution == 35 35 Run 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;" 37 38 {{{ 38 39 readyToLogin <slicename> -o --useSliceAggregates 39 40 }}} 41 }}} 40 42 41 43 This will save all the information to different files. We want to use the ssh configuration file that the script produced: 42 44 {{{ 45 #!div style="background: #ffd; border: 3px ridge; width: 685px;" 46 {{{ 43 47 mv ./sshconfig.txt ~/.ssh/config 48 }}} 44 49 }}} 45 50 … … 64 69 i. Open two new terminals 65 70 i. In one terminal type 71 {{{ 72 #!div style="background: #ffd; border: 3px ridge; width: 685px;" 66 73 {{{ 67 74 ssh -A hostA 68 75 }}} 76 }}} 69 77 and in the other 78 {{{ 79 #!div style="background: #ffd; border: 3px ridge; width: 685px;" 70 80 {{{ 71 81 ssh -A hostB 72 82 }}} 83 }}} 73 84 74 85 {{{ … … 90 101 91 102 i. In your local terminal type : 103 {{{ 104 #!div style="background: #ffd; border: 3px ridge; width: 685px;" 92 105 {{{ 93 106 remote-execute --useSliceAggregates <slicename> -m "ls -a" 94 107 }}} 108 }}} 95 109 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;" 96 112 {{{ 97 113 remote-execute --useSliceAggregates <slicename> -m "ls -a" --host top 98 114 }}} 115 }}} 99 116 100 117 … … 102 119 We are going to use remote execution to configure our routers. For this specific command we will use ssh directly. 103 120 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;" 104 123 {{{ 105 124 ssh -A <router_name> "/local/click-example/extractClickConfig.py" … … 117 136 }}} 118 137 (If you are prompted for a password, check to make sure that you provided the `-A` switch in your ssh command above.) 138 }}} 119 139 120 140 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;" 121 143 {{{ 122 144 scp top:myslice.png ./ 145 }}} 123 146 }}} 124 147 i. Open the diagram in your browser or your favorite image viewing program.