cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
148
Views
0
Helpful
2
Replies
Highlighted

NSO - Problem creating a NETSIM device

i finish install my NSO 5.1 on ubuntu.

i try to create a device in NETSIM and i get this error:

 

rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios CE0

*** The NED package called <cisco-ios> doesn't have a
*** netsim directory. ncs-netsim cannot emulate
*** devices that do not have a netsim directory.
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ ls
logs ncs-cdb ncs.conf packages README.ncs scripts state storedstate target
rafael@ubuntu:~/nso-lab$ ls packages/
cisco-ios-cli-3.0 cisco-ios-cli-3.8 cisco-iosxr-cli-3.0 cisco-iosxr-cli-3.5
rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios-cli-3.8 CE0
env: ‘make’: No such file or directory

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios-cli-3.0 CE0

*** 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
rafael@ubuntu:~/nso-lab$ ncs-netsim delete-network
/home/rafael/nso-5.1/bin/ncs-netsim: line 1259: ./stop.sh: No such file or directory
DEVICE CE0 already STOPPED
rafael@ubuntu:~/nso-lab$ ncs-netsim create-device cisco-ios-cli-3.0 CE0
env: ‘make’: No such file or directory

*** Failed to install
Try ncs-netsim --help or man ncs-netsim to get usage text
rafael@ubuntu:~/nso-lab$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
rafael@ubuntu:~/nso-lab$

2 REPLIES 2
Beginner

Re: NSO - Problem creating a NETSIM device

same thing happened to me.  I did the "source $HOME/nso-5.1/ncsrc" command again, even though I didn't think I needed to since I'd already done it......voila.

Cisco Employee

Re: NSO - Problem creating a NETSIM device

You need to point to the NED package location.

If your NED is in ./packages/cisco-ios-cli-3.8, then the line should be:

ncs-netsim create-device packages/cisco-ios-cli-3.8 CE0

otherwise, ncs-netsim is looking for the NED under the current directory, which is usually not the case (you don't create netsim devices inside your packages directory).