[0:00]Hello, my name is Paul, and I'm a developer advocate for Cisco DevNet. Today, I'm going to show you how you can get started with the Cisco iOSX our netcomf anable collection. So let's go. Okay, so before we start looking at the code, there are a few things that we need to cover. The first thing is that you need to make sure that you have Ansible installed on your system. And the second thing is that you need to make sure that you have the Cisco iOS XR Netcomf Ansible collection installed. So if you don't have that installed, make sure that you take a look at the installation guide on Ansible Galaxy. So let's move on to our environment here. And as you can see, I'm using a virtual environment here, and this virtual environment has a few things that it has installed already. So it has Ansible and it has the collection. And just to prove that to you, I can do an Ansible Galaxy collection list, and then I can grep for iOS XR. And as you can see here, I have the Cisco iOS XR Netcomf collection installed. So we're good to go there. Let's clear that up. And then we can take a look at our inventory file. So the inventory file is basically where you define your devices. So I have a file here called inventory.mo. And as you can see, I have two devices here. I have one called iOS XR O1 and one called iOS XR O2. And these are both sandbox devices, so they're available for you to use in the DevNet Sandbox environment. And then I've added a few variables here as well. So I've added the username and the password. And I've also added the Netcomf port, which is 830, since these devices are using Netcomf. So we're good to go there. Let's clear that up as well. And then we can take a look at our first PlayBook. So this PlayBook is called getinterface.mo. And as you can see, this is a very simple PlayBook. It's basically targeting all the hosts in our inventory file. And then we're using the iOS XR Netcomf get module to retrieve information about the interfaces. And then we're storing that in a variable called output.
[2:14:16]And then we're just printing out the output to the screen.
[2:17:16]So let's run this PlayBook.
[2:19:16]So we can do an Ansible PlayBook get interfaces.
[2:22:16]And then we specify our inventory file.
[2:26:16]And as you can see, this is going to connect to both devices, retrieve the information about the interfaces, and then print that out to the screen.
[2:35:16]So as you can see, this is a very simple way of retrieving information from your devices.
[2:41:16]So let's clear that up as well.
[2:43:16]And then we can take a look at our second PlayBook, which is called setinterface.mo.
[2:49:16]And as you can see here, this is also a very simple PlayBook.
[2:53:16]It's basically targeting all the hosts in our inventory file.
[2:57:16]And then we're using the iOS XR Netcomf config module to configure the interfaces.
[3:04:16]And then we're just setting the description of the loopback zero interface to a simple test description.
[3:12:16]And then we're also setting the MTU to 1500.
[3:16:16]So let's run this PlayBook.
[3:18:16]So we can do an Ansible PlayBook set interfaces, and then we specify our inventory file.
[3:25:16]And as you can see, this is going to connect to both devices, configure the interfaces, and then print that out to the screen.
[3:33:16]And as you can see here, it's changed the configuration on both devices.
[3:38:16]So let's clear that up.
[3:40:16]And then we can take a look at our third PlayBook, which is called get_version.mo.
[3:46:16]And as you can see here, this is also a very simple PlayBook.
[3:50:16]It's targeting all the hosts in our inventory file.
[3:54:16]And then we're using the iOS XR Netcomf get_facts module to retrieve information about the devices.
[4:02:16]And then we're storing that in a variable called output.
[4:05:16]And then we're just printing out the output to the screen.
[4:08:16]So let's run this PlayBook.
[4:10:16]So we can do an Ansible PlayBook get version, and then we specify our inventory file.
[4:17:16]And as you can see, this is going to connect to both devices, retrieve the version information, and then print that out to the screen.
[4:26:16]And as you can see here, it's retrieved the version information from both devices.
[4:32:16]So this is a very simple way of getting started with the Cisco iOS XR Netcomf Ansible collection.
[4:40:16]So thank you for watching, and I hope you found this useful.
[4:44:16]If you have any questions, please feel free to reach out to us on the DevNet community.



