Create a new NSO instance for Local Install.
Applies to Local Install.
One of the included scripts with an NSO installation is the ncs-setup
, which makes it very easy to create instances of NSO from a Local Install. You can look at the --help
or ncs-setup(1) in Manual Pages for more details, but the two options we need to know are:
--dest
defines the directory where you want to set up NSO. if the directory does not exist, it will be created.
--package
defines the NEDs that you want to have installed. You can specify this option multiple times.
NCS is the original name of the NSO product. Therefore, many of the commands and application features are prefaced with ncs
. You can think of NCS as another name for NSO.
To create an NSO instance:
Run the command to set up an NSO instance in the current directory with the IOS, NX-OS, IOS-XR and ASA NEDs. You only need one NED per platform that you want NSO to manage, even if you may have multiple versions in your installer neds
directory.
Use the name of the NED folder in ${NCS_DIR}/packages/neds
for the latest NED version that you have installed for the target platform. Use the tab key to complete the path, after you start typing (alternatively, copy and paste). Verify that the NED versions below match what is currently on the sandbox to avoid a syntax error. See the example below.
Check the nso-instance
directory. Notice that several new files and folders are created.
Following is a description of the important files and folders:
ncs.conf
is the NSO application configuration file, and is used to customize aspects of the NSO instance (for example, to change ports, enable/disable features, and so on.) See ncs.conf(5) in Manual Pages for information.
packages/
is the directory that has symlinks to the NEDs that we referenced in the --package
arguments at the time of setup. See NSO Packages in Development for more information.
logs/
is the directory that contains all the logs from NSO. This directory is useful for troubleshooting.
Start the NSO instance by navigating to the nso-instance
directory and typing the ncs
command. You must be situated in the nso-instance
directory each time you want to start or stop NSO. If you have multiple instances, you need to navigate to each one and use the ncs
command to start or stop each one.
Verify that NSO is running by using the ncs --status | grep status
command.
Add Netsim or lab devices using the command ncs-netsim -h
.