Bossing Cisco Around with Ansible

Standard

I’ve been talking about Infrastructure as Code / Automation / Python a lot with colleagues and peers so I figured I may as well make a quick intro to ansible post since it is just too hot out today.

I’ll preface this by saying, this is only really covered exam wise in the CCIE Written and possibly the cloud track but I figure it might be neat to see. If this is decently well received I might continue on and look at some of the other Evolving Technologies in the written.
Continue reading

Taking a Rest(ful API)

Standard

Yesterday we did a quick discussion on what python is all about, I closed things out by showing a simple script that runs a show command and prints the results. Running a script that pushes commands and looks for certain output is called “screen scraping” since python doesn’t know or care what device it connects to and what the output should look like so it just “scraps” the results and lets you deal with it.Yesterday we did a quick discussion on what python is all about, I closed things out by showing a simple script that runs a show command and prints the results. Running a script that pushes commands and looks for certain output is called “screen scraping” since python doesn’t know or care what device it connects to and what the output should look like so it just “scraps” the results and lets you deal with it.

Continue reading

Print(“A Python Post”)

Standard

Python keeps coming up again and again in various networking discussions since people are always debating exactly how much automation stuff you should learn as you get more senior.Python keeps coming up again and again in various networking discussions since people are always debating exactly how much automation stuff you should learn as you get more senior.
Continue reading

Take a Break, I got this! – An EEM Post

Standard

Lately we have been looking at various automation topics like Python where we can do some configuration or grab some output on a few boxes. Today we are going to kick the tires with Cisco’s Embedded Event Manager (EEM), the neat difference with this feature is that it runs directly on the Cisco device so it can run based on events like a command being entered or the router getting a new CDP neighbor.

Continue reading

What Dark Magic is this?

Standard
 cumulus@cumulus:~$ sudo ifconfig swp1 10.1.2.1/24
 cumulus@cumulus:~$ sudo ifconfig swp1 up
 cumulus@cumulus:~$ sudo vtysh
 
 Hello, this is FRRouting (version 3.1+cl3u1).
 Copyright 1996-2005 Kunihiro Ishiguro, et al.
 
 cumulus# conf t
 cumulus(config)# host CSW01
 CSW01(config)# router 
 babel Make Babel instance command
 bgp BGP information
 eigrp Start EIGRP configuration
 isis ISO IS-IS
 ospf Start OSPF configuration
 ospf6 Open Shortest Path First (OSPF) for IPv6
 rip RIP
 ripng RIPng
 CSW01(config)# router ei 123
 CSW01(config-router)# network 10.1.2.0/24
 CSW01(config-router)# end
 CSW01# show ip eigrp neighbors 
 
 EIGRP neighbors for AS(123)
 
 H Address Interface Hold Uptime SRTT RTO Q Seq 
 (sec) (ms) Cnt Num 
 0 10.1.2.2 swp1 10 0 0 2 0 2