cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1665
Views
0
Helpful
3
Replies

netsim sync failing with timeout

srisikha@cisco.com
Cisco Employee
Cisco Employee

sync-result {
device S-Test
result false
info Failed to connect to device S-Test: connection refused: NEDCOM CONNECT: The kexTimeout (20000 ms) expired. in new state
}

 

Any help to fix this appreciated 

1 Accepted Solution

Accepted Solutions

kiran kotari
Cisco Employee
Cisco Employee
3 Replies 3

kiran kotari
Cisco Employee
Cisco Employee

Hi srisikha, 

I have answered the question here, please have a look.

https://community.cisco.com/t5/nso-developer-hub-discussions/netsim-devices-oboarding-issue/m-p/4120316#M5483

-Kiran

Hi Kiran, 

Thanks- just some background - we have a product called SAE - Secure agile exchange which is on top of NSO/NFVO and it has GUI and we are adding a device from that GUI. Looks like that device is not present on NSO device list and when we did a Sync on it we getting a timeout -instead of device not present. Thanks - we will add the device to netsim. 

swarudka
Cisco Employee
Cisco Employee

Before sync from please check the device is present on netsim or not, the device should be alive and started in ncs
to check same use this command >> ncs-netsim is-alive

 

if it is not present there, follow below steps to add same and sync it

 

1.create netsim device >> i have added device as TEST_ASA1

#ncs-netsim add-device packages/cisco-asa-cli-6.9 TEST_ASA1
DEVICE TEST_ASA1 CREATED

2.start the netsim device
# ncs-netsim start TEST_ASA1
DEVICE TEST_ASA1 OK STARTED

3. To check if it is added or not
# ncs-netsim list

 

we need to fetch ssh key to avoid sync from error


4. Fetch SSH key for the device
admin@ncs# devices device TEST_ASA1 ssh fetch-host-keys

5. run below command to sync
admin@ncs# devices device TEST_ASA1 sync-from

To check the device is sync or not run below command

 

#request devices fetch-ssh-host-keys

This is how i have resolved the issue with the help of kiran

 

Thank you Kiran:)