| 305 | |
| 306 | ==== Some useful commands ==== |
| 307 | |
| 308 | Once you have the testbed set up as explained above, use the following commands to talk to the nodes or troubleshoot. |
| 309 | |
| 310 | 1. '''omf stat''' |
| 311 | |
| 312 | The manual page is shown below. |
| 313 | {{{ |
| 314 | > omf help stat |
| 315 | |
| 316 | Returns the status of the nodes in a testbed |
| 317 | |
| 318 | Usage: |
| 319 | stat [-h] |
| 320 | stat [-c] [DOMAIN] |
| 321 | stat "[TOPOLOGY]" [DOMAIN] |
| 322 | |
| 323 | With: |
| 324 | -h, --help print this help message |
| 325 | -c, --count print a summary of the node status for the testbed DOMAIN |
| 326 | (default is the testbed where this command is executed) |
| 327 | TOPOLOGY a valid topology description or file without the trailing '.rb' |
| 328 | (default is the entire set of nodes on the default testbed) |
| 329 | |
| 330 | Some Examples: |
| 331 | stat all grid |
| 332 | stat "[[1,2],[1,1]]" sb1 |
| 333 | stat "[[1,1],[2..6,1..2]]" |
| 334 | stat system:topo:all |
| 335 | stat system:topo:circle |
| 336 | stat topo_grid_active |
| 337 | }}} |
| 338 | |
| 339 | 2. '''omf tell''' |
| 340 | |
| 341 | The manual page is shown below. |
| 342 | {{{ |
| 343 | > omf help tell |
| 344 | |
| 345 | Switch ON/OFF the nodes in a testbed |
| 346 | |
| 347 | Usage: |
| 348 | tell [-h] |
| 349 | tell [COMMAND] "[TOPOLOGY]" [DOMAIN] |
| 350 | |
| 351 | With: |
| 352 | -h, --help print this help message |
| 353 | |
| 354 | COMMAND: |
| 355 | on, -on, --turn-on turn node(s) ON |
| 356 | offs, -offs, --turn-off-soft turn node(s) OFF (soft) |
| 357 | offh, -offh, --turn-off-hard turn node(s) OFF (hard) |
| 358 | |
| 359 | TOPOLOGY a valid topology description or file |
| 360 | (default is the entire set of nodes on the default testbed) |
| 361 | |
| 362 | Some Examples: |
| 363 | tell on all grid |
| 364 | tell on "1,1..2" |
| 365 | tell offs "[[1,2],[1,1]]" sb1 |
| 366 | tell offs "[[1,1],[2..6,1..2]]" |
| 367 | tell offh system:topo:all |
| 368 | tell offh topo_grid_active |
| 369 | }}} |
| 370 | |
| 371 | |