Automating Cisco IOS using NSO 5.3 on Ubuntu Linux 20.04 – Part 2 (Device Configuration)
- NSO can read the current configuration and easily update the configurations across your network.
Reading Device Configurations
- We can review the full device configuration with the following commands for c0.

- We can use the de-select keyword to filter out elements of our returned data. In this example we are excluding the config data and should be returned with the config used to add the device into the NSO inventory. Think of this as the vanilla config.

- Next let’s create an SVI for vlan 2 on the c0 device and then verify the configuration all through the ncs_cli.


- To fix this we can either re-sync the device to NSO or commit and ignore the sync check for the commit.

- Finally we can run our show command for the C0 device and parse out only the interface information we’re looking for. All from the same CLI.

- Repeat this process creating a vlan for the SVI, an access port for that vlan and other configuratios. Then you can verify with show commands parsing data after the commits.

- NSO supports * wildcarding so you can pull configuration data from multiple ‘modules’ at once.

- We have now explored connecting to an IOS device, Creating configurations on the device and verifying for sanity using show commands all from the NSO developer box.
Leave a Reply