cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
988
Views
1
Helpful
15
Replies

NSO Basics for Network Automation ISSUE

sipho-nangle
Level 1
Level 1

I am following the NSO Basics for network automation learning module and I'm stuck at once section.

siphonangle_0-1722517062326.png

when I follow this step I get "No entries Found"

every other step has worked up until this point.

 

1 Accepted Solution

Accepted Solutions

Jesus Illescas
Cisco Employee
Cisco Employee

Hi @sipho-nangle 

I spinned a NSO reservation to tested it and I can see that the devices and authgroups config is missing from the NCS host 49, sorry for the issue. This is something that will be fixed on the new release we are working on.

In the meantime, you can apply this config, which will add the devices to NSO on host 49.

 

devices authgroups group labadmin
default-map remote-name cisco
default-map remote-password cisco
default-map remote-secondary-password cisco
!
devices device core-rtr01
address   10.10.20.173
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-iosxr-cli-7.44
device-type cli protocol telnet
state admin-state unlocked
!
devices device core-rtr02
address   10.10.20.174
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-iosxr-cli-7.44
device-type cli protocol telnet
state admin-state unlocked
!
devices device dist-rtr01
address   10.10.20.175
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!
devices device dist-rtr02
address   10.10.20.176
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!
devices device dist-sw01
address   10.10.20.177
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-nx-cli-5.23
device-type cli protocol telnet
ned-settings cisco-nx behaviours show-interface-all enable
state admin-state unlocked
!
devices device dist-sw02
address   10.10.20.178
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-nx-cli-5.23
device-type cli protocol telnet
ned-settings cisco-nx behaviours show-interface-all enable
state admin-state unlocked
!
devices device edge-firewall01
address   10.10.20.171
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-asa-cli-6.17
device-type cli protocol telnet
state admin-state unlocked
!
devices device edge-sw01
address   10.10.20.172
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!
devices device internet-rtr01
address   10.10.20.181
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!

 

To quickly apply the configuration, you can go to configuration mode config then load merge terminal copy paste the config I shared, press enter (it needs to have a new line/carriage character), then ctrl + d to exit the terminal load and commit

I tested it and worked. From there you can connect to the devices and sync-from

EDIT: typos

 

View solution in original post

15 Replies 15

Marcel Zehnder
Spotlight
Spotlight

DELETED (anwered in wrong thread)

Marcel Zehnder
Spotlight
Spotlight

@sipho-nangle Maybe there are no devices imported/loaded in your NSO instance: What's the output of show devices brief ?

my NSO environment ran out of time, will check once I can reserve it again.

Hey, I have tried this and it looks like there is no devices.

developer@10.10.20.49's password:
Last login: Wed Aug 7 08:55:50 2024 from 192.168.254.11
[developer@nso ~]$ ncs_cli -C -u admin

User admin last logged in 2024-08-07T15:56:17.51203+00:00, to nso, from 192.168.254.11 using cli-ssh
admin connected from 192.168.254.11 using ssh on nso
admin@ncs# show devices brief
NAME ADDRESS DESCRIPTION NED ID
----------------------------------

also if i run the command from the lab I get no entries found.


admin@ncs# show running-config devices device
% No entries found.
admin@ncs# show running-config devices device | de-select config
% No entries found.
admin@ncs#

 

Marcel Zehnder
Spotlight
Spotlight

If the output is empty you need to configure an authgroup and add devices to NSO - see this link for the required steps:

https://developer.cisco.com/learning/modules/nso-basics/learn-nso-the-easy-way/populating-your-nso-instance/

 

I have done all the steps in that module up this point, multiple times, and still get the same result. 

Jesus Illescas
Cisco Employee
Cisco Employee

Hi @sipho-nangle if you are starting with NSO, you can also try https://developer.cisco.com/learning/labs/learn-nso-with-netsim/introduction/ which is similar to the Learning Lab you are following. The difference is that uses netsim instead of the sandbox and live status is not present.

We are working on upgrading the NSO sandbox to fix some issues, hopefully that will fix the one you have.

 

Hey Jesus, 

I have been using netsim recently, its pretty good. I will check that link out too though. Thank you  

Is this why I am never able to reserve a slot ? is it currently offline until the works is completed ?

Jesus Illescas
Cisco Employee
Cisco Employee

Hi @sipho-nangle , the work we do on the upgrade is not related to the availability of the sandbox. We work on a separate environment with separated instances.

The reason you find hard to reserve a slot, is due to the number of instances available, you can see that on the "more info"  tab of the NSO sandbox, see "Currently Active" and "Active environment limit". I will review with the team if we can increase the number of instances.

JesusIllescas_0-1723021759967.png

 

 

Ok, Thank you for the info

jokearns1
Cisco Employee
Cisco Employee

Hi All, 

We have increased NSO reservation limit. Please try reserving again. 

Thanks

Support 

Thanks, I have managed to reserve one.

Jesus Illescas
Cisco Employee
Cisco Employee

Hi @sipho-nangle 

I spinned a NSO reservation to tested it and I can see that the devices and authgroups config is missing from the NCS host 49, sorry for the issue. This is something that will be fixed on the new release we are working on.

In the meantime, you can apply this config, which will add the devices to NSO on host 49.

 

devices authgroups group labadmin
default-map remote-name cisco
default-map remote-password cisco
default-map remote-secondary-password cisco
!
devices device core-rtr01
address   10.10.20.173
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-iosxr-cli-7.44
device-type cli protocol telnet
state admin-state unlocked
!
devices device core-rtr02
address   10.10.20.174
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-iosxr-cli-7.44
device-type cli protocol telnet
state admin-state unlocked
!
devices device dist-rtr01
address   10.10.20.175
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!
devices device dist-rtr02
address   10.10.20.176
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!
devices device dist-sw01
address   10.10.20.177
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-nx-cli-5.23
device-type cli protocol telnet
ned-settings cisco-nx behaviours show-interface-all enable
state admin-state unlocked
!
devices device dist-sw02
address   10.10.20.178
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-nx-cli-5.23
device-type cli protocol telnet
ned-settings cisco-nx behaviours show-interface-all enable
state admin-state unlocked
!
devices device edge-firewall01
address   10.10.20.171
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-asa-cli-6.17
device-type cli protocol telnet
state admin-state unlocked
!
devices device edge-sw01
address   10.10.20.172
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!
devices device internet-rtr01
address   10.10.20.181
ssh host-key-verification none
authgroup labadmin
device-type cli ned-id cisco-ios-cli-6.90
device-type cli protocol telnet
state admin-state unlocked
!

 

To quickly apply the configuration, you can go to configuration mode config then load merge terminal copy paste the config I shared, press enter (it needs to have a new line/carriage character), then ctrl + d to exit the terminal load and commit

I tested it and worked. From there you can connect to the devices and sync-from

EDIT: typos