All omf commands are run on the testbed consoles. You must have an active reservation for the particular testbed to use them.
This cheat sheet contains a quick reference for the most common commands. The full reference is OMF Quick Start; on a console, omf <command> --help shows all options.
Check the status of all nodes in a testbed:
omf stat -t all
Check the status of specific nodes within the testbed (eg. node1-1 and node1-2):
omf stat -t node1-1,node1-2
Turn nodes on:
omf tell on -t node1-1,node1-2
Turn nodes off gracefully (soft off; use offh for hard off):
omf tell offs -t node1-1,node1-2
Reset a node (hard power-cycle):
omf tell reset -t node1-1,node1-2
Load the default baseline.ndz image:
omf load -t node1-1,node1-2
Load a specific disk image (SDR baseline with UHD + GNU Radio):
omf load -i baseline-sdr.ndz -t node1-1,node1-2
Load a specific disk image and resize the root partition to 40GB (-r 0 = whole disk):
omf load -i baseline-sdr.ndz -t node1-1,node1-2 -r 40
omf loadleaves nodes powered off when it finishes — follow withomf tell on -t ....
Save the disk image of a specific node.
First connect to the node and run:
/root/prepare.sh
If you skip the above step, the disk image will not work when loaded onto another node.
Then on the console run:
omf save -n node1-1.sb1.cosmos-lab.org
You must always specify the complete FQDN of the node, with
-n.