- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2019 08:14 AM - edited 03-17-2019 08:29 AM
Hi Guys,
I installed NSO (nso-4.7.darwin.x86_64) on OSX today but I cant seem to create a network, I have some output below, would be great if anyone can point me in the right direction:
Note I have installed ant and java 1.8 (not sure if it was necessary or not at this stage, but they installed successfully).
# Source ncsrc
> $ source ~/nso-4.7/ncsrc
# Try to create network as per README
> $ sudo ncs-netsim create-network ~/nso-4.7/packages/neds/cisco-ios 3 c
Password:
*** A netsim network already exists in directory netsim
*** Please use 'ncs-netsim delete-network' to remove it before
*** creating a new network, or 'ncs-netsim add-to-network' to
*** add devices to the existing network.
Try ncs-netsim --help or man ncs-netsim to get usage text
# Deleted the existing network from my previous attemtp
> $ sudo ncs-netsim delete-network
/Users/timedout/nso-4.7/bin/ncs-netsim: line 1196: ./stop.sh: No such file or directory
DEVICE c0 already STOPPED
# Tried again
> $ sudo ncs-netsim create-network ~/nso-4.7/packages/neds/cisco-ios 3 d
Makefile:2: /src/ncs/build/include.netsim.mk: No such file or directory
make: *** No rule to make target `/src/ncs/build/include.netsim.mk'. Stop.
*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text
# I saw this in other instructions (not in the README). Didnt work either
> $ sudo ncs-setup --dest ~/nso-4.7
cp: /etc/ncs/ncs.conf: No such file or directory
Using netsim dir /Users/nico/netsim
sed: confd.conf: No such file or directory
Help! :)
Thanks
Solved! Go to Solution.
- Labels:
-
DevOps
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2019 11:45 AM - edited 03-17-2019 11:47 AM
hi !
it's unclear if you made a "running directory" for NSO?
generally there are two steps to play with NSO.
a) install the product (looks like you did this - "local install" hopefully) e.g. something like:
sh nso-4.7.3.darwin.x86_64.installer.bin nso-473
and then (as you show) "source nso-473/ncsrc"
check this worked if you want "echo $NCS_DIR"
b) and then you need a running dir... examples mostly use "ncs-run" but you can call it anything you want. e.g.
mkdir ncs-run
cd ncs-run
ncs-setup --dest .
(note the "dot" at the end...)
In order to create netsims, you'll need a NED in the packages directory (in this ncs-run dir), so my suggestion is
to copy the one in the distro (where you installed NSO) into this packages dir...
cd packages
cp $NCS_DIR/packages/neds/cisco-ios .
Now... you can make a netsim network (with this type of device)
ncs-netsim create-network ./packages/cisco-ios 3 c
this says create three netsims of ios type with name "c0" "c1" "c2"
you can start them with (simply) "ncs-netsim start"
to log into a netsim do "ncs-netsim cli-c c0" for example
starting nso is just "ncs"
onboarding the netsims into NSO -- see the docs
(there is another command called "ncs-netsim ncs-xml-init > mydevs.xml" (where mydevs.xml is any name you like
and then "load merge" this file (and commit) from NSO to onboard directly (of course other ways exist too :)
hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2019 09:06 PM - edited 03-18-2019 12:00 AM
b) and then you need a running dir... examples mostly use "ncs-run" but you can call it anything you want. e.g.
mkdir ncs-run
cd ncs-run
ncs-setup --dest .
(note the "dot" at the end...)
Thanks Gschudel, excellent instructions, I have been missing out running 'ncs-setup --dest .'
But when I try I get the below error:
timedout@my-IMAC ~/nso-4.7/ncs-run [15:02:07]
> $ sudo ncs-setup --dest .
cp: /etc/ncs/ncs.conf: No such file or directory
Using netsim dir /Users/timedout/netsim
sed: confd.conf: No such file or directory
This is my java version: > $ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2019 11:45 AM - edited 03-17-2019 11:47 AM
hi !
it's unclear if you made a "running directory" for NSO?
generally there are two steps to play with NSO.
a) install the product (looks like you did this - "local install" hopefully) e.g. something like:
sh nso-4.7.3.darwin.x86_64.installer.bin nso-473
and then (as you show) "source nso-473/ncsrc"
check this worked if you want "echo $NCS_DIR"
b) and then you need a running dir... examples mostly use "ncs-run" but you can call it anything you want. e.g.
mkdir ncs-run
cd ncs-run
ncs-setup --dest .
(note the "dot" at the end...)
In order to create netsims, you'll need a NED in the packages directory (in this ncs-run dir), so my suggestion is
to copy the one in the distro (where you installed NSO) into this packages dir...
cd packages
cp $NCS_DIR/packages/neds/cisco-ios .
Now... you can make a netsim network (with this type of device)
ncs-netsim create-network ./packages/cisco-ios 3 c
this says create three netsims of ios type with name "c0" "c1" "c2"
you can start them with (simply) "ncs-netsim start"
to log into a netsim do "ncs-netsim cli-c c0" for example
starting nso is just "ncs"
onboarding the netsims into NSO -- see the docs
(there is another command called "ncs-netsim ncs-xml-init > mydevs.xml" (where mydevs.xml is any name you like
and then "load merge" this file (and commit) from NSO to onboard directly (of course other ways exist too :)
hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2019 09:06 PM - edited 03-18-2019 12:00 AM
b) and then you need a running dir... examples mostly use "ncs-run" but you can call it anything you want. e.g.
mkdir ncs-run
cd ncs-run
ncs-setup --dest .
(note the "dot" at the end...)
Thanks Gschudel, excellent instructions, I have been missing out running 'ncs-setup --dest .'
But when I try I get the below error:
timedout@my-IMAC ~/nso-4.7/ncs-run [15:02:07]
> $ sudo ncs-setup --dest .
cp: /etc/ncs/ncs.conf: No such file or directory
Using netsim dir /Users/timedout/netsim
sed: confd.conf: No such file or directory
This is my java version: > $ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2019 06:21 AM
You've missed a step somewhere...
check "echo $NCS_DIR" -- what does it say?
did you do a "local install" or "system install" of NSO?
did you make a "running directory" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2019 05:09 AM
I think I did a local install, I installed it twice and not 100% sure. I will delete the nso-4.7 directory and reinstall, then try again.
But yes I do have an ncd-run directory and $NCS_DIR output is below, I'll post my results when I try again, making sure i so local install. Thanks again.
timedout@IMAC ~/nso-4.7/ncs-run
> $ pwd
/Users/timedout/nso-4.7/ncs-run
> $ echo $NCS_DIR
/Users/timedout/nso-4.7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 11:40 PM - edited 03-22-2019 11:48 PM
Sorry for the delay, i used --local-install this time and I seem to be going well. I have created the ncs-run folder and copied the sim, but now I get this error:
> $ ncs-netsim create-network ./packages/cisco-ios 3 c
*** The NED package called <./packages/cisco-ios> doesn't have a
*** netsim directory. ncs-netsim cannot emulate
*** devices that do not have a netsim directory.
*** Maybe its a generic NED ?
Try ncs-netsim --help or man ncs-netsim to get usage text
> $ pwd
/Users/nico/nso-4.7/ncs-run
> $ ls -la
total 32
drwxr-xr-x 10 nico staff 340 23 Mar 17:31 .
drwxr-xr-x 24 nico staff 816 23 Mar 17:27 ..
-rw-r--r-- 1 nico staff 585 23 Mar 17:27 README.ncs
drwxr-xr-x 12 nico staff 408 23 Mar 17:31 cisco-ios
drwxr-xr-x 2 nico staff 68 23 Mar 17:27 logs
drwxr-xr-x 2 nico staff 68 23 Mar 17:27 ncs-cdb
-rw-r--r-- 1 nico staff 9357 23 Mar 17:27 ncs.conf
drwxr-xr-x 2 nico staff 68 23 Mar 17:27 packages
drwxr-xr-x 4 nico staff 136 23 Mar 17:27 scripts
drwxr-xr-x 2 nico staff 68 23 Mar 17:27 state> $
> $ echo $NCS_DIR
/Users/nico/nso-4.7
> $ ncs
> $
> $ ncs-netsim create-network ./packages/cisco-ios 3 c
*** The NED package called <./packages/cisco-ios> doesn't have a
*** netsim directory. ncs-netsim cannot emulate
*** devices that do not have a netsim directory.
*** Maybe its a generic NED ?
Try ncs-netsim --help or man ncs-netsim to get usage text
> $ ncs --status | grep status
status: started
Thanks for you're help gschudel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2019 11:41 PM - edited 03-23-2019 07:25 AM
Using the below command worked! I know its my syntax that caused the issues..
Thanks for your help!
> $ ncs-netsim create-network $NCS_DIR/packages/neds/cisco-ios 3 c [±master
DEVICE c0 CREATED
DEVICE c1 CREATED
DEVICE c2 CREATED

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2019 05:54 AM - edited 03-19-2019 05:55 AM
Missed the existing reply. Ignore this.
