Changes between Version 2 and Version 3 of Tutorials/a0Basic/Tutorial4
- Timestamp:
- Jun 10, 2016, 12:04:10 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/a0Basic/Tutorial4
v2 v3 18 18 19 19 '''1. Define the set of nodes and path for the WiSHFUL scripts directory:''' 20 21 The node set and the script path match the configuration on the default WiSHFUL image. 20 22 {{{ 21 23 defProperty('contr', 'node2-1', 'WiSHFUL Controller Node') … … 26 28 27 29 '''2. Define WiSSHFUL Controller and Agent applications that will run on the nodes:''' 28 We use ''defApplication'' to create two reference application names: ''controller'' and ''agent'' that are used later in the script to actually execute corresponding WiSHFUL components (in this case the path is based on WiSHFUL image installation location in ''/root/wishful'' and the execution of an example scripts and configurations that are in the ''examples/simple'' sub-directory). Each application receives configuration file name as the (only) command line option. 30 31 Use ''defApplication'' to create two reference application names: ''controller'' and ''agent'' that are used later in the script to actually execute corresponding WiSHFUL components (in this case the path is based on WiSHFUL image installation location in ''/root/wishful'' and the execution of an example scripts and configurations that are in the ''examples/simple'' sub-directory). Each application receives configuration file name as the (only) command line option. 29 32 {{{ 30 33 defApplication('controller') do |app| … … 124 127 === Retrieving Results === 125 128 126 This particular experiment does not generate any data but rather illustrates how to run WiSHFUL based experiment. The primary observable output from both experiment script execution as well as output of the controller/agent interraction are aggregated on the console in a log file: /tmp/''<Experiment ID>''.log 127 128 For this example, this log file is: /tmp/default_slice-2016-06-10t04.50.48.026-04.00.log 129 130 Partial contents of this file is: 129 This particular experiment does not generate any data but rather illustrates how to run WiSHFUL based experiment. The primary observable output from both experiment script execution as well as output of the controller/agent interaction are aggregated on the console in a log file: /tmp/''<Experiment ID>''.log 130 As can be observed in the execution output above (''Experiment ID: default_slice-2016-06-10t07.29.39.183-04.00''), this log file is in '''/tmp/default_slice-2016-06-10t07.29.39.183-04.00.log'''. As can be seen in the partial dump of this file, the controller is instruction agent to execute various commands on the target node: 131 131 {{{ 132 132 2016-06-10 07:29:54 DEBUG nodeHandler::set::Controllers: Start all applications