Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

When using these commands often, it may help to be able to run them from wherever location you are in your management machine.

To do this, put this two lines at the end of your bash.rc file:

Sourcing ONOS scripts
export ONOS_ROOT=~/onos
source $ONOS_ROOT/tools/dev/bash_profile

On Mac and other systems

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

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.

The rest of the development guide will assume for simplicity you did this step.

  • No labels