05-03-2019 11:05 AM - edited 05-03-2019 11:23 AM
Hi I am getting familiar with NSO, starting with the "getting started guide". But I have issue to connected to simulated device.
I have clean install of NSO 4.7, I have same issue on MacOS and Ubuntu 18.04.:
I think I am missing some initial step. On MacOS initially it shown issue with java, which I resolved by installing older version of java 6.
cisco@ubuntu:~$ source /home/cisco/nso-4.7/ncsrc cisco@ubuntu:~$ cd /home/cisco/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios cisco@ubuntu:~/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios$ ncs-netsim create-network /home/cisco/nso-4.7/packages/neds/cisco-ios 3 c DEVICE c0 CREATED DEVICE c1 CREATED DEVICE c2 CREATED cisco@ubuntu:~/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios$ ncs-netsim list ncs-netsim list for /home/cisco/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios/netsim name=c0 netconf=12022 snmp=11022 ipc=5010 cli=10022 dir=/home/cisco/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios/netsim/c/c0 name=c1 netconf=12023 snmp=11023 ipc=5011 cli=10023 dir=/home/cisco/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios/netsim/c/c1 name=c2 netconf=12024 snmp=11024 ipc=5012 cli=10024 dir=/home/cisco/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios/netsim/c/c2 cisco@ubuntu:~/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios$ ncs-netsim cli-i c1 Failed to connect to server cisco@ubuntu:~/nso-4.7/examples.ncs/getting-started/using-ncs/1-simulated-cisco-ios$ ncs-netsim cli-c c1 Failed to connect to server
It seems, the simulated device does not start at all:
ncs-netsim is-alive DEVICE c0 FAIL DEVICE c1 FAIL DEVICE c2 FAIL
Any advise?
This is how I installed the NSO:
133 cd nso-4.7.linux.x86_64/ 134 ls 135 sh nso-4.7.linux.x86_64.signed.bin 136 ls 137 sh nso-4.7.linux.x86_64.installer.bin $HOME/nso-4.7
Solved! Go to Solution.
05-03-2019 11:33 AM
Hello,
From the output it doesn't look like you have started the netsim devices.
$ ncs-netsim start
Here is the sequence I generally use:
05-03-2019 11:33 AM
Hello,
From the output it doesn't look like you have started the netsim devices.
$ ncs-netsim start
Here is the sequence I generally use:
05-03-2019 11:40 AM
05-03-2019 12:07 PM - edited 05-04-2019 04:12 AM
Thank you very much for you help, I indeed skipped the step to start simulated devices.
I will re-read the starting guide. Your help is much appreciated.
08-16-2023 02:39 AM
Hi I'm using NSO-6.0 ,i used the command ncs --stop and in this response ncs has been stoped.
And once i again it run NSO with source,cd and ncs they show following output with Failed to connect to server error.
nso@nsolab2:~$
nso@nsolab2:~$
nso@nsolab2:~$ source /home/nso/ncs-run/ncsrc
nso@nsolab2:~$
nso@nsolab2:~$ cd /home/nso/nso-6.0
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$ ncs
Bad configuration: /home/nso/nso-6.0/ncs.conf:0: Cannot open ./logs/ncserr.log.1 for writing, defined for /ncs-config/logs/error-log/filename
Daemon died status=21
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$ ncs_cli -C -u admin
Failed to connect to server
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$
nso@nsolab2:~/nso-6.0$
Please help me.
08-16-2023 04:34 AM
Hi,
Is the ./logs directory created?
BR,
Johan
08-16-2023 04:35 AM
NCS never started so the ncs_cli failed to connect to server. NCS didn't start because of this:
Bad configuration: /home/nso/nso-6.0/ncs.conf:0: Cannot open ./logs/ncserr.log.1 for writing, defined for /ncs-config/logs/error-log/filename
Daemon died status=21
That's why I'm asking if the logs directory exists.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide