Devnet
NSO
Start Using Cisco Nso

Using Cisco NSO for the First Time

This lab introduces you to the basics of utilizing Cisco NSO (Network Services Orchestrator) for network automation tasks. You'll navigate the NSO CLI, examine operational aspects, and perform simple device configuration updates in a simulated network environment.

Scenario

You've joined a company employing Cisco NSO for automating device configurations and network services. Your manager wants you to familiarize yourself with NSO by completing basic tasks in a lab environment featuring a local NSO instance and virtual routers representing a segment of the production network.

Activity Objective

By completing this activity, you'll achieve the following objectives:

  • Start the local instance of Cisco NSO and access the NSO CLI.
  • Explore loaded packages and onboarded devices in NSO.
  • Inspect active device configurations and view data in different formats.
  • Configure a device using Cisco NSO CLI.

Access and Explore Cisco NSO CLI

1. Connect to the Student Workstation.

2. Source the ncsrc script:

cd /home/student/nso-5.7
source ncsrc

3. Start the NSO daemon process:

cd /home/student/nso-run
ncs

4. Launch the NSO CLI as admin:

ncs_cli -u admin

5. Switch CLI style to Cisco:

switch cli

6. Inspect installed packages:

show packages package package-version

7. View managed devices:

show devices list

8. Ensure devices are reachable:

devices connect

Read and Write Device Configurations

1. Display and inspect R1 router configuration:

show running-config devices device R1 config

2. View R1 config in XML format:

show running-config devices device R1 config | display xml

3. Display R1 config in Juniper style (set commands):

switch cli
show configuration devices device R1 config | display set

4. Switch back to Cisco style and enter config mode:

switch cli
config

5. Create a basic BGP configuration for R1:

devices device R1
config
router bgp 65001
neighbor 10.0.12.2 remote-as 65002

6. Display current candidate configuration:

top
show configuration

7. Perform a transaction dry-run:

commit dry-run

8. Display minimal config diff:

commit dry-run outformat native

9. Finalize transaction and view transaction details:

commit | details

By completing these steps, you've learned to interact with Cisco NSO CLI, read and manipulate device configurations, and perform transactional updates. You're now equipped to delve deeper into network device management with Cisco NSO.