Create NSO Instance
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:
--destdefines the directory where you want to set up NSO. if the directory does not exist, it will be created.--packagedefines the NEDs that you want to have installed. You can specify this option multiple times.
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
nedsdirectory.Use the name of the NED folder in
${NCS_DIR}/packages/nedsfor 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.ncs-setup --package ~/nso-6.0/packages/neds/cisco-ios-cli-6.44 \ --package ~/nso-6.0/packages/neds/cisco-nx-cli-5.15 \ --package ~/nso-6.0/packages/neds/cisco-iosxr-cli-7.20 \ --package ~/nso-6.0/packages/neds/cisco-asa-cli-6.8 \ --dest nso-instanceCheck the
nso-instancedirectory. Notice that several new files and folders are created.$ ls nso-instance/ logs ncs-cdb ncs.conf packages README.ncs scripts state $ ls -l nso-instance/packages/ total 0 lrwxrwxrwx 1 user docker 51 Mar 19 12:44 cisco-asa-cli-6.8 -> /home/user/nso-6.0/packages/neds/cisco-asa-cli-6.8 lrwxrwxrwx 1 user docker 52 Mar 19 12:44 cisco-ios-cli-6.44 -> /home/user/nso-6.0/packages/neds/cisco-ios-cli-6.44 lrwxrwxrwx 1 user docker 54 Mar 19 12:44 cisco-iosxr-cli-7.20 -> /home/user/nso-6.0/packages/neds/cisco-iosxr-cli-7.20 lrwxrwxrwx 1 user docker 51 Mar 19 12:44 cisco-nx-cli-5.15 -> /home/user/nso-6.0/packages/neds/cisco-nx-cli-5.15 $Following is a description of the important files and folders:
ncs.confis 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--packagearguments 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-instancedirectory and typing thencscommand. You must be situated in thenso-instancedirectory each time you want to start or stop NSO. If you have multiple instances, you need to navigate to each one and use thencscommand to start or stop each one.Verify that NSO is running by using the
ncs --status | grep statuscommand.$ ncs --status | grep status status: started db=running id=31 priority=1 path=/ncs:devices/device/live-status-protocol/device-typeAdd Netsim or lab devices using the command
ncs-netsim -h.
Last updated
Was this helpful?

