Page tree

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

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 3 Next »

This section describes ONOS's Karaf-based CLI.


The ONOS CLI is an extension of Karaf's CLI. As a result, it is capable of leveraging features such as programmatic extensibility, the ability to load and unload bundles (among others), and SSH access.

ONOS Commands

ONOS supplies a set of its own commands. help onos lists the available commands: 

onos> help onos
onos:add-flows                  Installs a flow rules                                                                                                                                                                                           
onos:add-host-intent            Installs host-to-host connectivity intent                                                                                                                                                                       
onos:add-multi-to-single-intent Installs point-to-point connectivity intent                                                                                                                                                                     
onos:add-node                   Adds a new controller cluster node
onos:add-optical-intent         Installs optical connectivity intent 

The commands can be invoked as either onos:<command> or <command> by itself. Some of these commands have further descriptions that can be seen with help onos:<command>.

onos> help onos:add-flows

	    Installs a flow rules

        onos:add-flows [options] flowPerDevice numOfRuns 

                Number of flows to add per device
                Number of iterations
                Display this help message
        -j, --json
                Output JSON

Appendix A provides a listing of the currently available CLI commands. 


Previous : Interacting with ONOS
Next : The ONOS Web GUI


  • No labels