cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
928
Views
0
Helpful
4
Replies

Netsim device connection refused with newly created netconf NED.

sachin0987
Level 1
Level 1

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#

 

1 Accepted Solution

Accepted Solutions

ramkraja
Cisco Employee
Cisco Employee

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

View solution in original post

4 Replies 4

ramkraja
Cisco Employee
Cisco Employee

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

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

Yes, Already running.

Hi Ram ,
Thanks for your response, after restart the ncs and netsim,It works.I don't know about the actual issue.
Getting Started

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: