12-03-2019 01:58 AM
Hi,
I have created juniper ned by using ncs netconf ned creation method, but after adding a new device using the same ned getting connection refused.
Package Reload Successful and also there is no error during compilation.
}
reload-result {
package junosnewned
result true
}
admin@ncs# devices device ?
Possible completions:
Newnedrouter TEST-DEVICE new-device
admin@ncs# devices device Newnedrouter ping
result PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.040 ms
--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.040/0.040/0.040/0.000 ms
admin@ncs# devices device Newnedrouter check-sync
result error
info Failed to connect to device Newnedrouter: connection refused
admin@ncs#
Solved! Go to Solution.
12-03-2019 03:25 AM
admin@ncs# devices device Newnedrouter ping
result PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.040 ms--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.040/0.040/0.040/0.000 ms
admin@ncs# devices device Newnedrouter check-sync
result error
info Failed to connect to device Newnedrouter: connection refused
admin@ncs#
Did you get the host keys from the device?
Try doing "devices device Newnedrouter ssh fetch-host-keys", and then try connecting to the device.
Ping works because it is over ICMP, and does not need the host-keys. To connect over SSH, NSO needs the host-keys from the device (you can disable host-key verification if you want, but it is not recommended).
/Ram
12-03-2019 03:25 AM
admin@ncs# devices device Newnedrouter ping
result PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.040 ms--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.040/0.040/0.040/0.000 ms
admin@ncs# devices device Newnedrouter check-sync
result error
info Failed to connect to device Newnedrouter: connection refused
admin@ncs#
Did you get the host keys from the device?
Try doing "devices device Newnedrouter ssh fetch-host-keys", and then try connecting to the device.
Ping works because it is over ICMP, and does not need the host-keys. To connect over SSH, NSO needs the host-keys from the device (you can disable host-key verification if you want, but it is not recommended).
/Ram
12-03-2019 03:27 AM
Or perhaps the netsim device is not running. That seems more in line with the error "connection refused".
Are you sure you started the netsim device?
/Ram
12-03-2019 04:45 AM - edited 12-03-2019 04:53 AM
Yes, Already running.
12-03-2019 05:59 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: