| 1 | = OMF = |
| 2 | |
| 3 | {{{ |
| 4 | user@console:omf |
| 5 | Run a command on the testbed(s) |
| 6 | Usage: omf-5.4 [COMMAND] [ARGUMENT]... |
| 7 | Available COMMANDs: |
| 8 | help Print this help message or a specify command usage |
| 9 | exec Execute an experiment script |
| 10 | load Load a disk image on a given set of nodes |
| 11 | save Save a disk image from a given node into a file |
| 12 | tell Switch a given set of nodes ON/OFF or reboot them |
| 13 | stat Returns the status of a given set of nodes |
| 14 | To get more help on individual commands: 'omf-5.4 help [COMMAND]' |
| 15 | Examples: |
| 16 | omf-5.4 help exec Return usage/help for the 'exec' command |
| 17 | omf-5.4 help load Return usage/help for the 'load' command |
| 18 | }}} |
| 19 | |
| 20 | == exec == |
| 21 | |
| 22 | {{{ |
| 23 | user@console: omf help exec |
| 24 | |
| 25 | OMF Experiment Controller 5.4 (git 9ac2ff9) |
| 26 | |
| 27 | Execute an experiment script |
| 28 | |
| 29 | Usage: exec [OPTIONS] ExperimentName [-- EXP_OPTIONS] |
| 30 | |
| 31 | ExperimentName is the filename of the experiment script |
| 32 | [EXP_OPTIONS] are any options defined in the experiment script |
| 33 | [OPTIONS] are any of the following: |
| 34 | |
| 35 | -a, --allow-missing Continue experiment even if some nodes did not check in |
| 36 | -C, --configfile FILE File containing local configuration parameters |
| 37 | -c, --config NAME Configuration section from the config file ('default' if omitted) |
| 38 | -d, --debug Operate in debug mode |
| 39 | -i, --interactive Run the experiment controller in interactive mode |
| 40 | -l, --libraries LIST Comma separated list of libraries to load (defaults to [system:exp:stdlib,system:exp:eventlib]) |
| 41 | --log FILE File containing logging configuration information |
| 42 | -m, --message MESSAGE Message to add to experiment trace |
| 43 | -n, --just-print Print the commands that would be executed, but do not execute them |
| 44 | -p, --print URI Print to the console the content of the experiment resource URI |
| 45 | -o, --output-result FILE File to write final state information to |
| 46 | -e, --experiment-id EXPID Set the ID for this experiment, instead of the default standard ID |
| 47 | -O, --output-app Display STDOUT & STDERR output from the executed applications |
| 48 | -r, --reset If set, then reset (reboot) the nodes before the experiment |
| 49 | -S, --slice NAME Name of the Slice where this EC should operate |
| 50 | -s, --shutdown If set, then shut down resources at the end of an experiment |
| 51 | -t, --tags TAGS Comma separated list of tags to add to experiment trace |
| 52 | --oml-uri URI The URI to the OML server for this experiment |
| 53 | -x, --extra-libs LIST Comma separated list of libraries to load in addition to [system:exp:stdlib,system:exp:eventlib] |
| 54 | --slave-mode EXPID Run in slave mode in disconnected experiment, EXPID is the exp. ID |
| 55 | --slave-mode-resource NAME When in slave mode, NAME is the HRN of the resource for this EC |
| 56 | -h, --help Show this message |
| 57 | -v, --version Show the version |
| 58 | }}} |
| 59 | |
| 60 | == load == |
| 61 | |
| 62 | {{{ |
| 63 | user@console:omf help load |
| 64 | Install a given disk image on the nodes in a testbed |
| 65 | Usage: |
| 66 | omf-5.4 load [-h] [-i IMAGE_PATH] [-o TIMEOUT] [-t TOPOLOGY] [-c AGGREGATE] |
| 67 | |
| 68 | With: |
| 69 | -h, --help print this help message |
| 70 | -c, --config AGGREGATE use testbed AGGREGATE |
| 71 | -t, --topology TOPOLOGY a valid topology file or description (defaults to 'system:topo:all') |
| 72 | (if a file 'TOPOLOGY' doesn't exist, interpret it as a comma-separated list of nodes) |
| 73 | -i, --image IMAGE disk image to load |
| 74 | (default is 'baseline.ndz', the latest stable baseline image) |
| 75 | -o, --timeout TIMEOUT a duration (in sec.) after which imageNodes should stop waiting for |
| 76 | nodes that have not finished their image installation |
| 77 | (default is 800 sec, i.e. 13min 20sec) |
| 78 | --outpath PATH Path where the resulting Topologies should be saved |
| 79 | (default is '/tmp') |
| 80 | --outprefix PREFIX Prefix to use for naming the resulting Topologies |
| 81 | (default is your experiment ID) |
| 82 | |
| 83 | Some Examples: |
| 84 | omf-5.4 load |
| 85 | omf-5.4 load -t system:topo:all -i baseline-2.4.ndz |
| 86 | omf-5.4 load -t omf.nicta.node1 -i wireless-2.6.ndz |
| 87 | omf-5.4 load -t omf.nicta.node1,omf.nicta.node2 -i baseline.ndz -o 400 |
| 88 | omf-5.4 load -t system:topo:circle -i my_Own_Image.ndz |
| 89 | omf-5.4 load -t my_Own_Topology -i baseline-2.2.ndz -t 600 -c grid |
| 90 | omf-5.4 load -t my_Own_Topology --outpath ./ --outprefix my_Own_Prefix |
| 91 | }}} |
| 92 | |
| 93 | == save == |
| 94 | |
| 95 | {{{ |
| 96 | omf-5.4 help save |
| 97 | Save a disk image from a given node into an archive file |
| 98 | Usage: |
| 99 | omf-5.4 save -n NODE [-h] [-c AGGREGATE] |
| 100 | |
| 101 | With: |
| 102 | -h, --help print this help message |
| 103 | -n, --node NODE a valid description of a single node |
| 104 | (no default here, you have to enter a node!) |
| 105 | |
| 106 | Some Examples: |
| 107 | omf-5.4 save -n omf.nicta.node1 |
| 108 | omf-5.4 save -n omf.nicta.node3 -c grid |
| 109 | }}} |
| 110 | |
| 111 | == tell == |
| 112 | |
| 113 | {{{ |
| 114 | user@console:omf help tell |
| 115 | Switch ON/OFF and reboot the nodes in a testbed |
| 116 | Usage: |
| 117 | omf-5.4 tell -a ACTION [-h] [-t TOPOLOGY] [-c AGGREGATE] |
| 118 | |
| 119 | With: |
| 120 | -h, --help print this help message |
| 121 | |
| 122 | -a, --action ACTION specify an action |
| 123 | ACTION: |
| 124 | on turn node(s) ON |
| 125 | offs turn node(s) OFF (soft) |
| 126 | offh turn node(s) OFF (hard) |
| 127 | reboot reboots node(s) (soft) |
| 128 | reset resets node(s) (hard) |
| 129 | |
| 130 | -c, --config AGGREGATE use testbed AGGREGATE |
| 131 | -t, --topology TOPOLOGY a valid topology file or description (defaults to 'system:topo:all') |
| 132 | |
| 133 | Some Examples: |
| 134 | omf-5.4 tell -a reset |
| 135 | omf-5.4 tell -a on -t system:topo:all -c grid |
| 136 | omf-5.4 tell -a reboot -t omf.nicta.node1 |
| 137 | omf-5.4 tell -a offs -t omf.nicta.node1,omf.nicta.node2 -c sb1 |
| 138 | omf-5.4 tell -a offh -t system:topo:all |
| 139 | omf-5.4 tell -a reset -t topo_grid_active |
| 140 | }}} |
| 141 | |
| 142 | == stat == |
| 143 | |
| 144 | {{{ |
| 145 | user@console:omf-5.4 help stat |
| 146 | Returns the status of the nodes in a testbed |
| 147 | Usage: |
| 148 | omf-5.4 stat [-h] [-s] [-t TOPOLOGY] [-c AGGREGATE] |
| 149 | |
| 150 | With: |
| 151 | -h, --help print this help message |
| 152 | -s, --summary print a summary of the node status for the testbed |
| 153 | -c, --config AGGREGATE use testbed AGGREGATE |
| 154 | -t, --topology TOPOLOGY a valid topology file or description (defaults to 'system:topo:all') |
| 155 | |
| 156 | Some Examples: |
| 157 | omf-5.4 stat |
| 158 | omf-5.4 stat -s |
| 159 | omf-5.4 stat -t omf.nicta.node1,omf.nicta.node2 -c sb1 |
| 160 | omf-5.4 stat -t system:topo:all -c grid |
| 161 | }}} |
| 162 | |
| 163 | For example: |
| 164 | {{{ |
| 165 | user@console.outdoor:~# omf stat |
| 166 | |
| 167 | INFO NodeHandler: OMF Experiment Controller 5.4 (git 6d34264) |
| 168 | INFO NodeHandler: Slice ID: default_slice (default) |
| 169 | INFO NodeHandler: Experiment ID: default_slice-2012-10-14t14.42.15-04.00 |
| 170 | INFO NodeHandler: Message authentication is disabled |
| 171 | INFO Experiment: load system:exp:stdlib |
| 172 | INFO property.resetDelay: value = 210 (Fixnum) |
| 173 | INFO property.resetTries: value = 1 (Fixnum) |
| 174 | INFO Experiment: load system:exp:eventlib |
| 175 | INFO Experiment: load system:exp:stat |
| 176 | INFO Topology: Loading topology ''. |
| 177 | INFO property.nodes: value = "system:topo:all" (String) |
| 178 | INFO property.summary: value = false (FalseClass) |
| 179 | INFO Topology: Loading topology 'system:topo:all'. |
| 180 | Talking to the CMC service, please wait |
| 181 | ----------------------------------------------- |
| 182 | Domain: outdoor.orbit-lab.org |
| 183 | Node: node3-6.outdoor.orbit-lab.org State: NOT REGISTERED |
| 184 | Node: node3-3.outdoor.orbit-lab.org State: POWEROFF |
| 185 | Node: node2-10.outdoor.orbit-lab.org State: POWEROFF |
| 186 | Node: node1-10.outdoor.orbit-lab.org State: POWEROFF |
| 187 | Node: node1-8.outdoor.orbit-lab.org State: POWERON |
| 188 | Node: node1-6.outdoor.orbit-lab.org State: POWERON |
| 189 | Node: node3-2.outdoor.orbit-lab.org State: POWEROFF |
| 190 | Node: node3-1.outdoor.orbit-lab.org State: POWEROFF |
| 191 | Node: node1-3.outdoor.orbit-lab.org State: POWERON |
| 192 | Node: node3-5.outdoor.orbit-lab.org State: POWEROFF |
| 193 | Node: node2-5.outdoor.orbit-lab.org State: NOT REGISTERED |
| 194 | Node: node1-2.outdoor.orbit-lab.org State: POWERON |
| 195 | ----------------------------------------------- |
| 196 | INFO Experiment: Switching ON resources which are OFF |
| 197 | INFO EXPERIMENT_DONE: Event triggered. Starting the associated tasks. |
| 198 | INFO NodeHandler: |
| 199 | INFO NodeHandler: Shutting down experiment, please wait... |
| 200 | INFO NodeHandler: |
| 201 | INFO run: Experiment default_slice-2012-10-14t14.42.15-04.00 finished after 0:6 |
| 202 | }}} |