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

Cisco NSO No login prompt

zyko
Level 1
Level 1

Hello

I have installed cisco nso 6.1 and created devices using ncs-netsim as below:

#configure authgroup

ncs_cli -C -u admin
conf
devices authgroups group labtest
default-map remote-name cisco
default-map remote-password cisco
default-map remote-secondary-password cisco
commit
end

#add device using ncs-netsim

ncs-netsim add-device cisco-ios-cli-3.8 rtr08
cd netsim
ncs-netsim start rtr08
ncs-netsim is-alive

#configure device on nso

ncs_cli -C -u admin
conf
devices device rtr08
address 127.0.0.1 port 10026
authgroup labtest
device-type cli ned-id cisco-ios-cli-3.8
device-type cli protocol telnet
ssh host-key-verification none
commit
state admin-state unlocked
commit
end

 

I am getting the below response when trying to connect to the configured router either through CLI or through the webui:

 

admin@ncs(config-device-rtr08)# connect
result false
info Failed to connect to device rtr08: connection refused: No login prompt

 

Any idea of what I am doing wrong?

 

Thanks

2 Accepted Solutions

Accepted Solutions

snovello
Cisco Employee
Cisco Employee
You should use ssh, not telnet. Netsim does not support telnet access.

View solution in original post

Jesus Illescas
Cisco Employee
Cisco Employee

We have several examples on how to setup netsim and NSO. Take a look at this Learning Lab - https://developer.cisco.com/learning/labs/learn-nso-with-netsim/

On the first step "Setting up NSO", you can see how to mix ncs-netsim with ncs-setup to automatically add your devices to NSO.

 

View solution in original post

3 Replies 3

snovello
Cisco Employee
Cisco Employee
You should use ssh, not telnet. Netsim does not support telnet access.

Jesus Illescas
Cisco Employee
Cisco Employee

We have several examples on how to setup netsim and NSO. Take a look at this Learning Lab - https://developer.cisco.com/learning/labs/learn-nso-with-netsim/

On the first step "Setting up NSO", you can see how to mix ncs-netsim with ncs-setup to automatically add your devices to NSO.

 

hniska
Cisco Employee
Cisco Employee

ncs-netsim --help
Usage ncs-netsim [--dir <NetsimDir>]
                              ncs-xml-init

ncs-netsim ncs-xml-init > devices.xxml

ncs_cli -u admin

configure

load merge devices.xml

commit

request devices sync-from

done