Running NSO Examples
Run and interact with practice examples provided with the NSO installer.
Applies to Local Install.
This section provides an overview of how to run the examples provided with the NSO installer. By working through the examples, the reader should get a good overview of the various aspects of NSO and hands-on experience from interacting with it.
General Instructions
Make sure that NSO is installed with a Local Install according to the instructions in Local Install.
Source the
ncsrcfile in the NSO installation directory to set up a local environment. For example:$ source ~/nso-6.0/ncsrcProceed to the example directory:
$ cd $NCS_DIR/examples.ncs/device-management/simulated-cisco-iosFollow the instructions in the
READMEfiles that are located in the example directories.
Every example directory is a complete NSO run-time directory. The README file and the detailed instructions later in this guide show how to generate a simulated network and NSO configuration for running the specific examples. Basically, the following steps are done:
Create a simulated network using the
ncs-netsim --create-networkcommand:$ ncs-netsim create-network cisco-ios-cli-3.8 3 iosThis creates 3 Cisco IOS devices called
ios0,ios1, andios2.Create an NSO run-time environment using the
ncs-setupcommand:$ ncs-setup --dest .This command uses the
--destoption to create local directories for logs, database files, and the NSO configuration file to the current directory (note that.refers to the current directory).Start NCS netsim:
$ ncs-netsim startStart NSO:
$ ncs
It is important to make sure that you stop ncs and ncs-netsim when moving between examples using the stop option of the netsim and the --stop option of the ncs.
$ cd $NCS_DIR/examples.ncs/device-management/simulated-cisco-ios
$ ncs-netsim start
$ ncs
$ ncs-netsim stop
$ ncs --stopCommon Mistakes
Some of the most common mistakes are:
Last updated
Was this helpful?

