Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ONOS utility scripts are spread across different ONOS root sub-directories.

When using these commands oftenIf you use these scripts frequently, it may help be helpful to be able to be able to run them from wherever location you are in your management any directory on your development machine.

To do this, put this If you use bash, you can add two lines at the end of your .bashrc, .bash_aliases or .rc profile file:

Code Block
languagebash
titleSourcing ONOS scripts
export ONOS_ROOT=~/onos
source $ONOS_ROOT/tools/dev/bash_profile
Tip
titleOn Mac and other systems

If you're using a Mac, the file is called bash_profile. On other systems it might be called differentlydifferent.

In general, you can put these instructions in any script that is executed every time at startup.

From now on, you should be able to use the ONOS command utilities directly using their name only, without specifying their path.

Warning

The rest of the For simplicity, some subsequent sections of this development guide will assume for simplicity you did have completed this step.